Bug 53745

Summary: Extra's RollingFileAppender Delete Files
Product: Log4j - Now in Jira Reporter: Chadwick Baatz <CMBAATZ>
Component: AppenderAssignee: log4j-dev <log4j-dev>
Status: NEW ---    
Severity: normal CC: CMBAATZ
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   

Description Chadwick Baatz 2012-08-20 14:40:41 UTC
Add the ability for the Extra's version of the RollingFileAppender to delete/purge files based on the number of log files on disk.

Note: 
My team has had the desire to enable time based log rotation with file puring for some time and we have extended the Log4j Extra's version of the RollingFileAppender to purge log files using an asynchronous task.  If the community is interested I been given the green light by our legal team to start the process to contribute this change.

The change has been tested by extending the existing unit tests using the SizeBasedRollingPolicy, TimeBasedRollingPolicy, and FilterBasedRollingPolicy.