I am writing a Tomcat application that uses log4j. I want to create several logs to several differant files. I tried creating several loggers with differant names and these loggers used differant conifiguration property files but when I change the settings for one logger it changes it for all the logggers.
I tried this but not working I simply run a java application in a loop which is calling x.java and y.java, want to create log for x.log and y.log calling both the classes from XY.java main method, logs are mixing up I am using DOMConfigurator static block.
subject: Getting log4j to write to multiple log files