Mercurial > hg > nginx-site
comparison xml/en/docs/ngx_core_module.xml @ 1449:c79501e16e26
Documented cyclic memory buffer support for error_log.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Wed, 08 Apr 2015 13:56:52 +0300 |
parents | 2333e08e277d |
children | f5b5eefc43cb |
comparison
equal
deleted
inserted
replaced
1448:d3390895fe6e | 1449:c79501e16e26 |
---|---|
8 <!DOCTYPE module SYSTEM "../../../dtd/module.dtd"> | 8 <!DOCTYPE module SYSTEM "../../../dtd/module.dtd"> |
9 | 9 |
10 <module name="Core functionality" | 10 <module name="Core functionality" |
11 link="/en/docs/ngx_core_module.html" | 11 link="/en/docs/ngx_core_module.html" |
12 lang="en" | 12 lang="en" |
13 rev="11"> | 13 rev="12"> |
14 | 14 |
15 <section id="example" name="Example Configuration"> | 15 <section id="example" name="Example Configuration"> |
16 | 16 |
17 <para> | 17 <para> |
18 <example> | 18 <example> |
143 | 143 |
144 | 144 |
145 <directive name="error_log"> | 145 <directive name="error_log"> |
146 <syntax> | 146 <syntax> |
147 <value>file</value> | <literal>stderr</literal> | | 147 <value>file</value> | <literal>stderr</literal> | |
148 <literal>syslog:</literal><literal>server</literal>=<value>address</value>[,<value>parameter</value>=<value>value</value>] | 148 <literal>syslog:</literal><literal>server</literal>=<value>address</value>[,<value>parameter</value>=<value>value</value>] | |
149 <literal>memory:</literal><value>size</value> | |
149 [<literal>debug</literal> | | 150 [<literal>debug</literal> | |
150 <literal>info</literal> | | 151 <literal>info</literal> | |
151 <literal>notice</literal> | | 152 <literal>notice</literal> | |
152 <literal>warn</literal> | | 153 <literal>warn</literal> | |
153 <literal>error</literal> | | 154 <literal>error</literal> | |
171 If filename is not absolute, it is prefixed with the prefix path. | 172 If filename is not absolute, it is prefixed with the prefix path. |
172 --> | 173 --> |
173 The special value <literal>stderr</literal> selects the standard error file. | 174 The special value <literal>stderr</literal> selects the standard error file. |
174 Logging to <link doc="syslog.xml">syslog</link> can be configured by specifying | 175 Logging to <link doc="syslog.xml">syslog</link> can be configured by specifying |
175 the “<literal>syslog:</literal>” prefix. | 176 the “<literal>syslog:</literal>” prefix. |
177 Logging to a | |
178 <link doc="debugging_log.xml" id="memory">cyclic memory buffer</link> | |
179 can be configured by specifying the “<literal>memory:</literal>” prefix and | |
180 buffer <value>size</value>, and is generally used for debugging (1.7.11). | |
176 </para> | 181 </para> |
177 | 182 |
178 <para> | 183 <para> |
179 The second parameter determines the level of logging. | 184 The second parameter determines the level of logging. |
180 Log levels above are listed in the order of increasing severity. | 185 Log levels above are listed in the order of increasing severity. |