Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
0.9.7
-
None
-
Linux (SuSE)
Description
log4cxx's current default initializion is broken on Linux (and possibly a large number of other systems), because log4cxx sticks a little too close to log4j's ideas:
The current mechanism is using environment variables containing
a dot for its configuration. As stated in the short introduction:
"The preferred way to specify the default initialization file is through the log4j.configuration environment variable."
The problem is, that it's impossible to create environment variables containing a dot on Linux systems, meaning you're unable to use the preferred way of default initialization on Linux...
I've created a small, backward-compatible patch, that goes on
to check a few additional environment variables (LOG4J_CONFIGURATION
and LOG4CXX_CONFIGURATION) if log4j.configuration is unset allowing
UNIX-types to use these instead of the ones with the dot. The patch
also updates the documentation in the short introduction.