I have 5 applications which have different log4j xml configuration file. And I want each of them to be configured according to the given file and logs correctly when called from one main method.
I have 5 applications which have different log4j xml configuration file. And I want
Share
Log4j will automatically look for and use config files it finds on the classpath. It looks for files called
log4j.propertiesandlog4j.xmland possibly others.Alternatively you can programatically load config using;