Mercurial > hg > nginx-site
comparison 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 |
comparison
equal
deleted
inserted
replaced
1873:2f851f71ff08 | 1874:33f742032155 |
---|---|
8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> | 8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> |
9 | 9 |
10 <module name="Module ngx_http_log_module" | 10 <module name="Module ngx_http_log_module" |
11 link="/en/docs/http/ngx_http_log_module.html" | 11 link="/en/docs/http/ngx_http_log_module.html" |
12 lang="en" | 12 lang="en" |
13 rev="15"> | 13 rev="16"> |
14 | 14 |
15 <section id="summary"> | 15 <section id="summary"> |
16 | 16 |
17 <para> | 17 <para> |
18 The <literal>ngx_http_log_module</literal> module writes request logs | 18 The <literal>ngx_http_log_module</literal> module writes request logs |
192 | 192 |
193 | 193 |
194 <directive name="log_format"> | 194 <directive name="log_format"> |
195 <syntax> | 195 <syntax> |
196 <value>name</value> | 196 <value>name</value> |
197 [<literal>escape</literal>=<value>default</value>|<value>json</value>] | |
197 <value>string</value> ...</syntax> | 198 <value>string</value> ...</syntax> |
198 <default>combined "..."</default> | 199 <default>combined "..."</default> |
199 <context>http</context> | 200 <context>http</context> |
200 | 201 |
201 <para> | 202 <para> |
202 Specifies log format. | 203 Specifies log format. |
204 </para> | |
205 | |
206 <para id="log_format_escape"> | |
207 The <literal>escape</literal> parameter (1.11.8) allows setting | |
208 <value>json</value> or <value>default</value> characters escaping in variables, | |
209 by default, <value>default</value> escaping is used. | |
203 </para> | 210 </para> |
204 | 211 |
205 <para> | 212 <para> |
206 The log format can contain common variables, and variables that | 213 The log format can contain common variables, and variables that |
207 exist only at the time of a log write: | 214 exist only at the time of a log write: |