comparison xml/en/docs/ngx_core_module.xml @ 158:05e58829de2e

Documented the "error_log" directive.
author Ruslan Ermilov <ru@nginx.com>
date Fri, 28 Oct 2011 07:13:20 +0000
parents c76a257f3fd4
children c4b33b07dcfe
comparison
equal deleted inserted replaced
157:16e3df2d0dd6 158:05e58829de2e
35 <context>main</context> 35 <context>main</context>
36 36
37 <para> 37 <para>
38 Determines whether nginx should become a daemon. 38 Determines whether nginx should become a daemon.
39 Mainly used during development. 39 Mainly used during development.
40 </para>
41
42 </directive>
43
44
45 <directive name="error_log">
46 <syntax>
47 <argument>file</argument>
48 [<value>debug</value> |
49 <value>info</value> |
50 <value>notice</value> |
51 <value>warn</value> |
52 <value>error</value> |
53 <value>crit</value> |
54 <value>alert</value> |
55 <value>emerg</value>]
56 </syntax>
57 <default>logs/error.log error</default>
58 <context>main</context>
59 <context>http</context>
60 <context>server</context>
61 <context>location</context>
62
63 <para>
64 Configures logging.
65 </para>
66
67 <para>
68 The first argument defines a file that will store the log.
69 <!--
70 If filename is not absolute, it is prefixed with the prefix path.
71 -->
72 </para>
73
74 <para>
75 The second argument determines the level of logging.
76 Log levels above are listed in the order of increasing severity.
77 Setting a certain log level will cause all messages of
78 the specified and more severe log levels to be logged.
79 For example, the default level <value>error</value> will
80 cause <value>error</value>, <value>crit</value>,
81 <value>alert</value>, and <value>emerg</value> messages
82 to be logged.
83 <note>
84 For <value>debug</value> logging to work, nginx needs to
85 be configured with <code>--with-debug</code>.
86 </note>
40 </para> 87 </para>
41 88
42 </directive> 89 </directive>
43 90
44 91