You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Nolan Ring <No...@Sun.COM> on 2003/03/12 21:26:39 UTC
help configuring Log4jListener?
Hi,
I posted yesterday about appending to an ant logfile rather than
overwriting it. Thanks for the responses - I think that the best would be
for me to run a listener and then work with the output file. However,
right now I'm in listener hell and am getting the dreaded
log4j:WARN No appenders could be found for logger (org.apache.tools.ant).
log4j:WARN Please initialize the log4j system properly.
I put the log4j-1.2.8.jar file in my $ANT_HOME/lib directory and have a
log4j.properties file in my CLASSPATH - its contents is:
log4j.rootLogger=INFO, STDOUT, FILE
log4j.appender.STDOUT=org.apache.log4j.ConsoleAppender
log4j.appender.STDOUT.layout=org.apache.log4j.PatternLayout
log4j.appender.STDOUT.layout.ConversionPattern=%m%n
log4j.appender.STDOUT.threshold=WARN
log4j.appender.FILE=org.apache.log4j.FileAppender
log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
Clearly it's wrong!
Can someone point help me to get this thing configured? I'm about running out of hair.
Thanks much.
Nolan