posted 18 years ago
I have 2 application that run on the same JVM.
I unfortunately cannot define, what 2 different applications mean , since they are abstracted by a certain platform.
But the question is probably generic enough.
Each one has a log4j.xml with a root catgeory defined
log4j1
-----
<root>
<appender-ref ref="FILE1"/>
</root>
log4j2
------
<root>
<appender-ref ref="FILE2"/>
</root>
Now will one root , overwrite the other.
I notice the behaviour where one gets overridden by the other.
Since I want to log most of app1 logs to FILE1 and most of app2 logs to FILE2, the above would have been convenient if they worked as separate units.
Regards
Mahesh