# HG changeset patch # User Ruslan Ermilov # Date 1322644744 0 # Node ID 5284967934dfbc3d4571e0f408ca8cca5b4eb8b7 # Parent 18217133791f65325789922f2c42ba8977dbf5a0 Improved markup and wording. diff --git a/xml/en/docs/debugging_log.xml b/xml/en/docs/debugging_log.xml --- a/xml/en/docs/debugging_log.xml +++ b/xml/en/docs/debugging_log.xml @@ -8,56 +8,60 @@
-To enable a debugging log, you first should configure nginx to build with -the debugging: +To enable a debugging log, nginx needs to be configured to support +debugging during the build: ./configure --with-debug ... -and then set the debug level -of the error_log: +Then the debug level should be set with the + directive: -error_log /path/to/log debug; +error_log /path/to/log debug; -The nginx/Windows binary version is always built with the debugging log -support. Therefore, you should set the debug level only. +The nginx binary version for Windows is always built with the debugging log +support, so only setting the debug level will suffice. -Note, that a defining log on another level, for example, on server +Note that redefining the log without also specifying the debug +level will disable the debugging log. +In the example below, redefining the log on the + level disables the debugging log for this server: -error_log /path/to/log debug; +error_log /path/to/log debug; http { server { - error_log /path/to/log; + error_log /path/to/log; ... -You should either comment out this server log or add -the debug flag too: +To avoid this, either the line redefining the log should be +commented out, or the debug level specification should +also be added: -error_log /path/to/log debug; +error_log /path/to/log debug; http { server { - error_log /path/to/log debug; + error_log /path/to/log debug; ... -It is also possible to enable the debugging log only for some addresses: +It is also possible to enable the debugging log for selected addresses only: -error_log /path/to/log; +error_log /path/to/log; events { - debug_connection 192.168.1.1; - debug_connection 192.168.10.0/24; + debug_connection 192.168.1.1; + debug_connection 192.168.10.0/24; }