Hack 78. Increase the Log Level temporarily

by Ramesh

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.

  1. # httpd -k start -e debug
  2.  
  3. [Sun Aug 17 13:53:06 2008] [debug] mod_so.c(246): loaded module auth_basic_module
  4. [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