logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ric Searle <ric.sea...@yellowbrick-tracking.com>
Subject FastRollingFile with DefaultRolloverStrategy not removing old log files
Date Wed, 04 Sep 2013 11:35:32 GMT

I'm evaluating beta8, with the following appender defined...

<FastRollingFile name="SQL-FILE" fileName="/var/log/tomcat7/sql.log" filePattern="/var/log/tomcat7/rolled/sql-%d{yyyy-MM-dd_HHmm}.log"
   <PatternLayout pattern="%d %-20C{1} : %m (Thread: %t)%n" />
   <SizeBasedTriggeringPolicy size="100 MB"/>
   <DefaultRolloverStrategy max="10"/>

All works well, except that old log files aren't being deleted. I just had to delete 300x
100MB files.

Any idea what I've got wrong?


Ric Searle

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

View raw message