I am coding a JNI project and planning to use log4j in java portion and log4cxx
in c++. Can the same configurations files be used for both?
If I change logging level at runtime in Java will the changes also be made in
c++ logger?
Finally can both Java and C++ loggers log to the same file?
Than
On Thursday 24 September 2009 17:57:39 Zmuda, Matthew wrote:
> I am coding a JNI project and planning to use log4j in java portion and
> log4cxx in c++. Can the same configurations files be used for both?
>
The same configuration file format is used for both but probably you will have
different
When calling native code from java the following works when making the native
calls:
BasicConfigurator::configure();
LoggerPtr rootLogger = Logger::getRootLogger();
LOG4CXX_DEBUG(rootLogger, "debug message");
LOG4CXX_INFO(rootLogger, "info message");
LOG4CXX_WARN(rootLogger,