# HG changeset patch # User Ruslan Ermilov # Date 1319786000 0 # Node ID 05e58829de2e678d8ccde4e27499fde68e7f5548 # Parent 16e3df2d0dd6947faa4b9794fd28c98df92fdad0 Documented the "error_log" directive. diff -r 16e3df2d0dd6 -r 05e58829de2e xml/en/docs/ngx_core_module.xml --- a/xml/en/docs/ngx_core_module.xml Wed Oct 26 13:56:18 2011 +0000 +++ b/xml/en/docs/ngx_core_module.xml Fri Oct 28 07:13:20 2011 +0000 @@ -42,6 +42,53 @@ + + +file +[debug | +info | +notice | +warn | +error | +crit | +alert | +emerg] + +logs/error.log error +main +http +server +location + + +Configures logging. + + + +The first argument defines a file that will store the log. + + + + +The second argument determines the level of logging. +Log levels above are listed in the order of increasing severity. +Setting a certain log level will cause all messages of +the specified and more severe log levels to be logged. +For example, the default level error will +cause error, crit, +alert, and emerg messages +to be logged. + +For debug logging to work, nginx needs to +be configured with --with-debug. + + + + + + VAR[=VALUE] TZ