Mercurial > hg > nginx-site
comparison xml/en/docs/ngx_core_module.xml @ 1697:147e3d0339e8
Reduced syntax clutter in the error_log directive.
The description text explains special values like "stderr", "syslog:...",
and "memory:...". It is believed that syntax without explicitly listing
these variants is more readable.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 10 May 2016 15:19:47 +0300 |
parents | aa95174efa80 |
children | bde044a0bd90 |
comparison
equal
deleted
inserted
replaced
1696:d855e7cc3b2f | 1697:147e3d0339e8 |
---|---|
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="18"> | 13 rev="19"> |
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> |
136 | 136 |
137 </directive> | 137 </directive> |
138 | 138 |
139 | 139 |
140 <directive name="error_log"> | 140 <directive name="error_log"> |
141 <syntax> | 141 <syntax><value>file</value> [<value>level</value>]</syntax> |
142 <value>file</value> | <literal>stderr</literal> | | |
143 <literal>syslog:</literal><literal>server</literal>=<value>address</value>[,<value>parameter</value>=<value>value</value>] | | |
144 <literal>memory:</literal><value>size</value> | |
145 [<value>level</value>]</syntax> | |
146 <default>logs/error.log error</default> | 142 <default>logs/error.log error</default> |
147 <context>main</context> | 143 <context>main</context> |
148 <context>http</context> | 144 <context>http</context> |
149 <context>mail</context> | 145 <context>mail</context> |
150 <context>stream</context> | 146 <context>stream</context> |
155 Configures logging. | 151 Configures logging. |
156 Several logs can be specified on the same level (1.5.2). | 152 Several logs can be specified on the same level (1.5.2). |
157 </para> | 153 </para> |
158 | 154 |
159 <para> | 155 <para> |
160 The first parameter defines a file that will store the log. | 156 The first parameter defines a <value>file</value> that will store the log. |
161 <!-- | 157 <!-- |
162 If filename is not absolute, it is prefixed with the prefix path. | 158 If filename is not absolute, it is prefixed with the prefix path. |
163 --> | 159 --> |
164 The special value <literal>stderr</literal> selects the standard error file. | 160 The special value <literal>stderr</literal> selects the standard error file. |
165 Logging to <link doc="syslog.xml">syslog</link> can be configured by specifying | 161 Logging to <link doc="syslog.xml">syslog</link> can be configured by specifying |