Apache Log4cxx: Internal Debugging (original) (raw)
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 logging:
- Configure the library directly by calling the LogLog::setInternalDebugging method
- If using a properties file, set the value
log4j.debug=truein your configuration file - If using an XML file, set the attribute
internalDebug=truein the root node - From the environment:
LOG4CXX_DEBUG=true
All error and warning messages are sent to stderr.