I'm having trouble with my first excursion into Log4J. I'm using an Ant script to compile my project and then call JUnit tests. I have no logging statements in the JUnit tests, but I do have logging statements in my application. I have confirmed (via System.out.print) that there is a System Property whose key is "log4j.configuration", and that this is a valid file on my Win2k/Cygwin filesystem, and the contents of that file are as follows:
# Set root logger level, and its only appender to A1. log4j.rootLogger=DEBUG, A1
# But ignore most messages from Apache libs log4j.logger.org.apache=WARN
# A1 is set to be a FileAppender. log4j.appender.A1=org.apache.log4j.FileAppender log4j.appender.A1.File=build/test/testing.log log4j.appender.A1.MaxFileSize=100KB
# A1 uses PatternLayout. log4j.appender.A1.layout=org.apache.log4j.PatternLayout log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
Does anyone see some problem with my log4j.configuration Properties file that would cause the Default Initialization to fail with the message that it can't find an Appender? It works fine when my Properties file is in my classpath, but according to the docs, this should work fine if I am passing in the log4j.configuration System Property, which I am.
Any help is greatly appreciated.
Erik
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
