Log4cxx Error. Please initialize the log4cxx system properly

1.6k views Asked by At

I´m running an application on a red hat image of docker. I have some .sh files but when executing them on the logs files I see this error:

Log4cxx  Please initialize the log4cxx system properly.

Log4cxx is already installed

1

There are 1 answers

0
Stephen Webb On

The .sh script must be invoking some C++ application that uses log4cxx and that application is not configuring log4cxx.

log4cxx is configured either by calling BasicConfigurator::configure() or by passing the path of a .properties to PropertyConfigurator::configure or a .xml file to DOMConfigurator::configure.

Try setting the LOG4CXX_CONFIGURATION environment variable to the path of a configuration file containing a configuration. See Example configurations