You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Bruce Pease <bp...@wth.com> on 2011/05/17 01:05:17 UTC

log4j config

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> 

 


Re: log4j config

Posted by Konstantin Kolinko <kn...@gmail.com>.
2011/5/17 Bruce Pease <bp...@wth.com>:
> 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:

Ask this on their (log4j) mailing list. Other documentation should be
there as well.

http://logging.apache.org/log4j/1.2/index.html
http://logging.apache.org/mail-lists.html

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org