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 Bruce Pease <bp...@wth.com> on 2011/05/17 03:04:44 UTC
log4j issue
I have an issue with log4j 1.2.16 where the max file size on the rolling file
appender is not working (also not on 1.2.15) However, when I go back to my
previous log4j version (1.2.9), the file backups do work. Was there a config
change, or is this a known issue? My config is below:
log4j.rootLogger=INFO, VerboseLog, FatalLog
log4j.appender.VerboseLog=org.apache.log4j.RollingFileAppender
log4j.appender.VerboseLog.Threshold=DEBUG
log4j.appender.VerboseLog.Append=true
log4j.appender.VerboseLog.MaxFileSize=10MB
log4j.appender.VerboseLog.MaxBackupIndex=10
log4j.appender.VerboseLog.File=C:/var/tomcat1/logs/travel.log
log4j.appender.VerboseLog.layout=org.apache.log4j.PatternLayout
log4j.appender.VerboseLog.layout.ConversionPattern=%d [%-5p] %c -%m%n
log4j.appender.FatalLog=org.apache.log4j.RollingFileAppender
log4j.appender.FatalLog.Threshold=FATAL
log4j.appender.FatalLog.MaxFileSize=5MB
log4j.appender.FatalLog.MaxBackupIndex=2
log4j.appender.FatalLog.File=C:/var/tomcat1/logs/travel.fatal.log
log4j.appender.FatalLog.layout=org.apache.log4j.PatternLayout
log4j.appender.FatalLog.layout.ConversionPattern=%d [%-5p] %c -%m%n
# Add your packages here that you want to debug:
log4j.logger.org.apache=FATAL
Bruce D. Pease
Technical Team Lead - Web Applications
CruiseOne(r) <http://www.cruiseone.com/> & Cruises Inc(tm)
<http://www.cruisesinc.com/>
1201 W. Cypress Creek Road, Suite 100
Fort Lauderdale, FL 33309-1955
954-958-3654 (direct) | 954-958-3665 (fax)
bpease@wth.com <ma...@wth.com>