Hack 78. Increase the Log Level temporarily

While you are debugging an issue, you can change the LogLevel of the Apache temporarily, without modifying the LogLevel directive in the httpd.conf as shown below using option -e. In this example, the LogLevel is set to debug.

# httpd -k start -e debug

[Sun Aug 17 13:53:06 2008] [debug] mod_so.c(246): loaded module auth_basic_module
[Sun Aug 17 13:53:06 2008] [debug] mod_so.c(246): loaded module auth_digest_module

Possible values you can pass to option -e are:

  • debug
  • info
  • notice
  • warn
  • error
  • crit
  • alert
  • emerg

Comments on this entry are closed.

  • Deepak November 5, 2013, 2:49 am

    Thanks, it worked for me!