[logback-dev] [JIRA] Resolved: (LBCORE-20) Add cleanup to TimeBasedRollingPolicy

Ceki Gulcu (JIRA) noreply-jira at qos.ch
Wed Oct 29 21:07:21 CET 2008

     [ http://jira.qos.ch/browse/LBCORE-20?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ceki Gulcu resolved LBCORE-20.

    Fix Version/s: 0.9.11
       Resolution: Duplicate

Thank you Andy. This issue duplicates LBCORE-11. Moreover, it has been solved in logback 0.9.11

> Add cleanup to TimeBasedRollingPolicy
> -------------------------------------
>                 Key: LBCORE-20
>                 URL: http://jira.qos.ch/browse/LBCORE-20
>             Project: logback-core
>          Issue Type: Improvement
>          Components: Appender
>    Affects Versions: unspecified
>         Environment: Operating System: All
> Platform: All
>            Reporter: Andy Gerweck
>            Assignee: Logback dev list
>            Priority: Minor
>             Fix For: 0.9.11
> The TimeBasedRollingPolicy class is very convenient for complex applications, but it still leaves us with the task of manually deleting old log files. It would be very nice if, like FixedWindowRollingPolicy, TimeBasedRollingPolicy had an option to keep only up to _n_ time windows. 
> E.g., I'd like to configure LOGBack to keep the last 30 days (or last 3 months, rotated monthly) of files with the TimeBasedRollingPolicy. I could use the FixedWindowROollingPolicy for this, but it's more cumbersome and I prefer to have the date in the file name. 
> Software should do the tricky stuff once for everybody to reuse. :-) Thanks again for the excellent LOGBack, I can't rave enough about how much an improvement it, along with SLF4J, is.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the logback-dev mailing list