Are log4j and log4cxx configuration files identical?

2009-09-24 Thread Zmuda, Matthew
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

Re: Are log4j and log4cxx configuration files identical?

2009-09-24 Thread Vasile . Jureschi
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

log4cxx with JNI... Crashes when using appender and layout?

2009-09-24 Thread Zmuda, Matthew
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,