Hi,
I have a common log4j configuration file for all my modules and I am using RollingFileAppender for all the modules. I see the log files are not getting rolled when two modules run at the same time(different JVM instance). I found that both the modules have opened all files in log files during log4j initialization and hence rolling failed. Is there a way (other than having separate config file for each module) to configure log4j to open the appenders only when there is a logging event so that rolling works fine?
Thanks