Apache Log4cxx  Version 1.6.0
Loading...
Searching...
No Matches
Internal Debugging

Because Log4cxx is a logging library, we can't use it to output errors from the library itself.

There are several ways to activate internal debug logging:

  1. Setting the environment variable LOG4CXX_DEBUG to the value true
  2. If using a properties file, add the line log4j.debug=true to your file
  3. If using an XML file, add the debug="true" attribute in the log4j.configuration element
  4. Configure the library programmatically by calling LogLog::setInternalDebugging

To disable all messages, including error and warning messages, call LogLog::setQuietMode(true).

All Log4cxx internal logging messages are sent to stderr, with each line prefixed by log4cxx:.