>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 formats are the same, but because of the answer to your third question, you 
may need two different files unless you add appenders programmatically, or 
split your loggers such that C++ loggers go to one appender and Java loggers go 
to another.

>If I change logging level at runtime in Java will the changes also be made in 
>c++ logger?
If you are making the changes in Java, they will not have any affect on the 
log4cxx logging configuration. If you are making changes to the file, and you 
have both your Java initialization and C++ initialization both set up to 
configure and watch, then both should see the file change and reconfigure based 
on the new file settings.

>Finally can both Java and C++ loggers log to the same file?
Both Java and C++ will try to open the file with write permissions, so this 
will not work.

-Andy

Reply via email to