logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sk k <skk7...@yahoo.com>
Subject Re: Newbie help
Date Fri, 11 Oct 2002 13:27:05 GMT
Here is the link for some sample
tutorials/documentation on how to setup log4j and
different features.

http://jakarta.apache.org/log4j/docs/documentation.html

Also, here is a sample too
---------------------------

#Root
log4j.rootCategory=DEBUG,dest1

#Category1
log4j.category.TestLogger1=INFO,dest2
log4j.additivity.TestLogger1=false

log4j.appender.dest1=org.apache.log4j.ConsoleAppender
log4j.appender.dest1.layout=org.apache.log4j.TTCCLayout
log4j.appender.dest1.File=c:/test/samp.log
log4j.appender.dest1.MaxFileSize=10MB
log4j.appender.dest1.MaxBackupIndex=2

log4j.appender.dest2=org.apache.log4j.RollingFileAppender
log4j.appender.dest2.layout=org.apache.log4j.TTCCLayout
log4j.appender.dest2.File=c:/test/test.log
log4j.appender.dest2.MaxFileSize=10MB
log4j.appender.dest2.MaxBackupIndex=2


--- Kwok Peng Tuck <pengtuck@makmal.com> wrote:
> I'm trying to get my jsp to work with log4j, I need
> to know how to set 
> up the log4j properties file to log to a file.
> Can someone provide a example ? Thanks.
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:log4j-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:log4j-user-help@jakarta.apache.org>
> 


__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.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