logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bob Liu" <b...@theocc.com>
Subject log4J configuration
Date Thu, 03 Oct 2002 13:39:15 GMT
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:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>


Mime
View raw message