Issue with setting the XMLConfiguration after the LoggerContext is initialized

2012-08-29 Thread Viral Shah
Hello there, I have started the migration process for a few of our applications running on Weblogic 10.3.3 to Log4j 2.0. I am running into a few issues that I hope someone can help me with. Since all the apps are running within 1 JVM, each app is to read its own log4j configuration and

Re: Issue with setting the XMLConfiguration after the LoggerContext is initialized

2012-08-29 Thread Ralph Goers
Since you are manually setting up the configuration and then calling setConfiguration() you don't want to call reconfigure(). setConfiguration() will perform the reconfiguration with the config you provided. reconfigure() will try to locate the configuration file using the normal mechanism and

Re: Issue with setting the XMLConfiguration after the LoggerContext is initialized

2012-08-29 Thread Ralph Goers
Looking at what you are doing I am thinking that when you update the configuration file automatic reconfiguration is probably not going to work properly as it calls the reconfigure method. Since you provided the file it should be using that instead of the standard search sequence. Ralph On