-Dlog4j.configuration=mylog4j.properties
-----Original Message----- From: Bradley, Todd [mailto:[EMAIL PROTECTED] Sent: Tue 3/22/2005 12:48 PM To: Log4J Users List Cc: Subject: why does log4j ignore my log4j.properties definition? I'm running a program from a jar file that contains its own log4j.properties. However, I want to override that and tell it to use my own properties file. However, even though I give java a -Dlog4j.properties argument, it ignores that and reads in a different properties file. See here: [EMAIL PROTECTED]:~/sample-app-MS1> java -Dlog4j.debug=true -Dlog4j.properties=mylog4j.properties -jar Proximo-Demo.jar log4j: Trying to find [log4j.xml] using context classloader [EMAIL PROTECTED] log4j: Trying to find [log4j.xml] using [EMAIL PROTECTED] class loader. log4j: Trying to find [log4j.xml] using ClassLoader.getSystemResource(). log4j: Trying to find [log4j.properties] using context classloader [EMAIL PROTECTED] log4j: Using URL [jar:file:/home/tbradley/sample-app-MS1/Proximo-Demo.jar!/log4j.properti es] for automatic log4j configuration. log4j: Reading configuration from URL jar:file:/home/tbradley/sample-app-MS1/Proximo-Demo.jar!/log4j.propertie s log4j: Parsing for [root] with value=[DEBUG,CONSOLE]. log4j: Level token is [DEBUG]. (and so on) [EMAIL PROTECTED]:~/sample-app-MS1> ls mylog4j.properties mylog4j.properties Why is it looking for and loading log4j.properties from the jar file instead of the mylog4j.properties file? This is on Linux with Java 5, if that matters. Obviously, log4j is honoring my -Dlog4j.debug=true. So, why not the name of the properties file? Todd. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
