Mercurial > hg > nginx-site
diff xml/en/docs/stream/ngx_stream_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 | 19eb203ffd41 |
children | 0b339643b08f |
line wrap: on
line diff
--- a/xml/en/docs/stream/ngx_stream_log_module.xml Wed Dec 21 22:52:16 2016 +0300 +++ b/xml/en/docs/stream/ngx_stream_log_module.xml Tue Dec 20 18:44:33 2016 +0300 @@ -9,7 +9,7 @@ <module name="Module ngx_stream_log_module" link="/en/docs/stream/ngx_stream_log_module.html" lang="en" - rev="3"> + rev="4"> <section id="summary"> @@ -155,6 +155,7 @@ <directive name="log_format"> <syntax> <value>name</value> + [<literal>escape</literal>=<value>default</value>|<value>json</value>] <value>string</value> ...</syntax> <default></default> <context>stream</context> @@ -169,6 +170,12 @@ </example> </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> + </directive>