The logic for selecting the configuration file is in the LogManager.java log4j class.
The environment variable you're looking for might be: DEFAULT_INIT_OVERRIDE_KEY Do you remember where you set this? I'd like to know how you stop it looking at both files and instead allow the user to do BasicConfigurator.configure(); First log4j will look for the log4j.properties files Then if it doesnt find this it will look for the log4j.xml file If you want to see which one is has selected, use -Dlog4j.debug in your JVM arguments when you run your program. -- View this message in context: http://www.nabble.com/How-can-I-tell-which-log4j-configuration-file-is-being-used--tp17353608p17364347.html Sent from the Log4j - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]