yes, xx_log4j.properties is the properties file defined in my IDE classpath.
I tried yr ways, and here is my results: 1- Trial of renaming the the file to log4j.properties (Didn't work) log4j:ERROR Could not read configuration file [log4j.properties]. java.io.FileNotFoundException: log4j.properties (The system cannot find the file specified. ) void java.io.FileInputStream.open(java.lang.String) native code void java.io.FileInputStream.<init>(java.lang.String) FileInputStream.java:64 void org.apache.log4j.PropertyConfigurator.doConfigure(java.lang.String, org.apache.log4j.spi.LoggerRepository) PropertyConfigurator.java:297 void org.apache.log4j.PropertyConfigurator.configure(java.lang.String) PropertyConfigurator.java:315 0 [main] INFO com.rsw.test.MyAppProperty - Entering application. 140 [main] DEBUG com.rsw.test.Bar - Did it again! 140 [main] WARN com.rsw.test.MyAppProperty - Hello world all ante7 fentakes 140 [main] WARN com.rsw.test.MyAppProperty - Hello world all ante7 fentakes 150 [main] WARN com.rsw.test.MyAppProperty - Hello world all ante7 fentakes 150 [main] INFO com.rsw.test.MyAppProperty - Exiting application. void com.rsw.test.MyAppProperty.main(java.lang.String[]) MyAppProperty.java:19 log4j:ERROR Ignoring configuration file [log4j.properties]. Process exited with exit code 0. -----Original Message----- From: Ebersole, Steven [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 28, 2003 8:05 PM To: 'Log4J Users List' Subject: RE: NOONE TO ANSWER ? So to make sure I understand correctly: xx_log4j.properties is a file in some directory which you have defined to your IDE as being part of the classpath? Correct? There are a number of ways to get log4j to be able to read this file in order to configure itself: 1) Simply rename the file from xx_log4j.properties to log4j.properties 2) If your IDE supports setting of environmental properties (-D options), try setting log4j.configuration=xx_log4j.properties 3) Explicitly locate the file yourself and "feed it" to log4j. Locating a file relative from the classpath is acheived using the ClassLoader.getResource() or ClassLoader.getSystemResouce() methods (they return URL objects). Try: String fullPath = this.getClass().getClassLoader().getResource( "xx_log4j.properties" ).toExternalForm(); HTH --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]