hi group, I just did some tests and when MaxHistory is more than 30 days, log rotation in not working, If its less than that, logs are rotated properly.
 
Could this be a bug? I only tried in logback-0.9.13


From: Jenny <jenny_uy81@yahoo.com>
To: logback users list <logback-user@qos.ch>
Sent: Tue, January 5, 2010 4:18:34 PM
Subject: Re: [logback-user] MaxHistory not deleting old files

hi group, I tried this on our non-prod environment with smaller Max history of 5 and the old files were deleted. I'm just wondering if this is because the max history number before is too big?


From: Jenny <jenny_uy81@yahoo.com>
To: logback-user@qos.ch
Sent: Thu, December 10, 2009 10:31:10 AM
Subject: [logback-user] MaxHistory not deleting old files

Hello,
 
I have a TimeBasedRollingPolicy maxhistory of 90 days. Although my logs are rolling daily, the old files beyond my max history are not deleted. Max history is not working.
 
   <fileNamePattern>MyLog-%d{yyyy-MM-dd}.log</fileNamePattern>
   <MaxHistory>90</MaxHistory>
 
version I'm using
logback-0.9.13
sl4j-api-1.5.6
 
thanks in advance