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

log4j2 getting started rolling files

2012-08-29 Thread Tushar Kapila
Happy to have downloaded the alpha sources using wget (wget is nifty worked on windows too : wget -e robots=off --cut-dirs=3 -r -p -np --no-check-certificate https://repository.apache.org/content/repositories/orgapachelogging-009/org/apache/logging/log4j/) and making my first test project with

Re: log4j2 getting started rolling files

2012-08-29 Thread Ralph Goers
Thanks for downloading Log4j 2 and working with it! RollingFileAppender currently doesn't support a listener but I see no reason it couldn't. Feel free to create a Jira issue for this feature. If you would like to implement it as well that would be fantastic! Ralph On Aug 29, 2012, at 2:26

Re: log4j2 getting started rolling files

2012-08-29 Thread Ralph Goers
I was just looking at the code and I'm not sure you are aware that the RollingFileAppender uses a RolloverStrategy. You don't have to configure it as DefaultRolloverStrategy is used if you don't specify one. The rollover strategy has method named rollover that is passed the