comparison xml/en/docs/debugging_log.xml @ 0:61e04fc01027

Initial import of the nginx.org website.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 11 Aug 2011 12:19:13 +0000
parents
children 9d544687d02c
comparison
equal deleted inserted replaced
-1:000000000000 0:61e04fc01027
1 <!DOCTYPE digest SYSTEM "../../../dtd/article.dtd">
2
3 <article title="A debugging log"
4 link="/en/docs/debugging_log.html"
5 lang="en">
6
7
8 <section>
9
10 <para>
11 To enable a debugging log, you first should configure nginx to build with
12 the debugging:
13
14 <programlisting>
15 ./configure --with-debug ...
16 </programlisting>
17
18 and then set the <dirname>debug</dirname> level
19 of the <dirname>error_log</dirname>:
20
21 <programlisting>
22 error_log /path/to/log debug;
23 </programlisting>
24
25 The nginx/Windows binary version is always built with the debugging log
26 support. Therefore, you should set the <dirname>debug</dirname> level only.
27 </para>
28
29 <para>
30 Note, that a defining log on another level, for example, on <i>server</i>
31 level disables the debugging log for this server:
32 <programlisting>
33 error_log /path/to/log debug;
34
35 http {
36 server {
37 error_log /path/to/log;
38 ...
39 </programlisting>
40 You should either comment out this server log or add
41 the <dirname>debug</dirname> flag too:
42 <programlisting>
43 error_log /path/to/log debug;
44
45 http {
46 server {
47 error_log /path/to/log debug;
48 ...
49 </programlisting>
50 </para>
51
52 <para>
53 It is also possible to enable the debugging log only for some addresses:
54
55 <programlisting>
56 error_log /path/to/log;
57
58 events {
59 debug_connection 192.168.1.1;
60 debug_connection 192.168.10.0/24;
61 }
62 </programlisting>
63 </para>
64
65 </section>
66
67 </article>