Re: Escape slashes in log output for JSON format

2014-11-26 Thread kay
I've done the patch for nginx 1.6.2 Now if you use this config: access_log logs/access.log main json; Additional backslash for backslash should appear in log. And it will not break JSON format. Can someone review my changes? https://github.com/kayrus/nginx/commit/682f3684ea331e089aa124fe7fce84

Escape slashes in log output for JSON format

2014-11-24 Thread kay
I would like to add "json" option for additional escape for backslash character. So it will be: access_log path format json; The initial patch for 1.6.2 looks like: --- ./src/http/modules/ngx_http_log_module.c.orig +++ ./src/http/modules/ngx_http_log_module.c @@ -67,6 +67,7 @@ time_t