Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions ngx_rtmp_log_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,23 @@ ngx_rtmp_log_var_time_local_getdata(ngx_rtmp_session_t *s, u_char *buf,
}


static size_t
ngx_rtmp_log_var_time_iso8601_getlen(ngx_rtmp_session_t *s,
ngx_rtmp_log_op_t *op)
{
return ngx_cached_http_log_iso8601.len;
}


static u_char *
ngx_rtmp_log_var_time_iso8601_getdata(ngx_rtmp_session_t *s, u_char *buf,
ngx_rtmp_log_op_t *op)
{
return ngx_cpymem(buf, ngx_cached_http_log_iso8601.data,
ngx_cached_http_log_iso8601.len);
}


static size_t
ngx_rtmp_log_var_session_time_getlen(ngx_rtmp_session_t *s,
ngx_rtmp_log_op_t *op)
Expand Down Expand Up @@ -451,6 +468,11 @@ static ngx_rtmp_log_var_t ngx_rtmp_log_vars[] = {
ngx_rtmp_log_var_time_local_getdata,
0 },

{ ngx_string("time_iso8601"),
ngx_rtmp_log_var_time_iso8601_getlen,
ngx_rtmp_log_var_time_iso8601_getdata,
0 },

{ ngx_string("msec"),
ngx_rtmp_log_var_msec_getlen,
ngx_rtmp_log_var_msec_getdata,
Expand Down