Environment Variables Used by Log4cxx

There are several environment variables that can be set in order to influence how Log4cxx works. They are summarized in the following table:

Environment VariableUsage
LOG4CXX_DEBUGSet to the value ‘true’ to enable internal debugging of Log4cxx. All output goes to stderr. This can be useful to determine why a configuration file is not loading
log4j.configuratorClassUsed to determine what class to use to configure the logging system
LOG4CXX_CONFIGURATOR_CLASSUsed to determine what class to use to configure the logging system. Takes precedence over log4j.configuratorClass
log4j.configurationSet the file to load to configure the logging system
LOG4CXX_CONFIGURATIONSet the file to load to configure the logging system. Takes precedence over log4j.configuration
LOG4CXX_CONFIGURATION_WATCH_SECONDSSet how often the configuration file should be checked for changes