Mercurial > hg > nginx-site
diff xml/en/docs/http/ngx_http_log_module.xml @ 1874:33f742032155
Documented support for json escaping in log_format.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Tue, 20 Dec 2016 18:44:33 +0300 |
parents | 080b36ad8d76 |
children | 0b339643b08f |
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_log_module.xml +++ b/xml/en/docs/http/ngx_http_log_module.xml @@ -10,7 +10,7 @@ <module name="Module ngx_http_log_module" link="/en/docs/http/ngx_http_log_module.html" lang="en" - rev="15"> + rev="16"> <section id="summary"> @@ -194,6 +194,7 @@ access_log /path/to/access.log combined <directive name="log_format"> <syntax> <value>name</value> + [<literal>escape</literal>=<value>default</value>|<value>json</value>] <value>string</value> ...</syntax> <default>combined "..."</default> <context>http</context> @@ -202,6 +203,12 @@ access_log /path/to/access.log combined Specifies log format. </para> +<para id="log_format_escape"> +The <literal>escape</literal> parameter (1.11.8) allows setting +<value>json</value> or <value>default</value> characters escaping in variables, +by default, <value>default</value> escaping is used. +</para> + <para> The log format can contain common variables, and variables that exist only at the time of a log write: