logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Glenn Holmer <ghol...@weycogroup.com>
Subject roller doesn't roll
Date Thu, 23 Mar 2006 16:01:11 GMT
I've got several apps using a RollingFileAppender, but one keeps 
overwriting the first file instead of rolling over to .1, .2, .3, etc.  
He is a web app running under Tomcat, and this is how he is configured:

log4j-1.2.9.jar is in /WEB-INF/classes of the webapp
config file is in /WEB-INF/classes/com/weycogroup/...
PropertyConfigurator is called in a ServletContextListener

this is his config file:

log4j.rootCategory=INFO, roller



log4j.appender.roller.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} 
%-5p %c{1} %M:%L %m%n

I created all eleven files in /var/log and gave Tomcat permission to 
write to them.  Logging works normally except for the roller not 
rolling.  What have I done wrong?

Glenn Holmer                          gholmer@weycogroup.com
Software Engineer                        phone: 414-908-1809
Weyco Group, Inc.                          fax: 414-908-1601

To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org

View raw message