You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Bob Liu <bl...@theocc.com> on 2002/10/03 15:39:15 UTC
log4J configuration
I just started using Log4J 1.2.6. I developed a new appender called
MyAppender extending from org.apache.log4j.AppenderSkeleton.
How do I put this the the configuration properties file?
This configuration works.
log4j.rootCategory=ERROR, dest1
log4j.appender.dest1=org.apache.log4j.ConsoleAppender
log4j.appender.dest1.layout=org.apache.log4j.PatternLayout
log4j.appender.dest1.layout.ConversionPattern=%d{MMM dd HH:MM:SS} %l %t
%c %p %m%n
But the following configuration doesn't work.
log4j.rootCategory=ERROR, dest1
log4j.appender.dest1=com.theocc.MyAppender
log4j.appender.dest1.layout=org.apache.log4j.PatternLayout
log4j.appender.dest1.layout.ConversionPattern=%d{MMM dd HH:MM:SS} %l %%c
%p %m%n
Basically I want to know how to write a customized configuration?
Thanks.
Bob Liu
The OCC
bliu@theocc.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>