java - Multiple Log4j.properties files in classpath -


how log4j manages multiple log4j.properties in classpath? log4j.properties file takes precedence? let me describe exact scenario.

i have multiple maven modules developed different teams , each 1 of them has own log4j.properties file. of these log4j.properties file have rootlogger configured along consoleappender , fileappenders.

now, when log4j loads log4j.properties file use configure rootlogger settings ? also, how log4j create logger hierarchy ? how log4j.properties file in other 3rd party jars affect logging process ?

the first file in classpath loaded. if a.jar , b.jar both contain file, , a.jar comes before b.jar in classpath, a.jar's file loaded. that's how class loader works.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -