DatedRollingFileAppender => also the actual file has the date in it this seems 
to cause less problems under windows

CompressingRollingFileAppender => zips the file after rolling

CleaningCompressingRollingFileAppender => deletes all files (*ALL FILLES, not 
only log files!!!*) in the log directory older than specified max age

an example config would be:

# TRACE as a CleaningCompressingRollingFileAppender containing everything
log4j.appender.TRACE=org.apache.log4j.CleaningCompressingRollingFileAppender
log4j.appender.TRACE.File=log/connectivity.trace.%d.log
# number of days that are keept
log4j.appender.TRACE.maxAge=7
# to keep 30 minutes: (type uses constants from Calendar, default is days)
#log4j.appender.TRACE.maxAge=30
#log4j.appender.TRACE.maxAgeType=12
log4j.appender.TRACE.layout=org.apache.log4j.PatternLayout
log4j.appender.TRACE.layout.ConversionPattern=%d\t[%-30t]\t%-5p\t%C.%M\t%m%n

comments are welcome...

cheers
patrick


ps: yeah it sucks, that i put the classes into package org.apache.log4j but i 
had to ;-)
pps: coding style?!? ahmmm, yeah well...
ppps: naming?!? at least it says what it's going to do, right?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to