[logback-dev] [JIRA] Updated: (LBCLASSIC-298) improve RollingCalendar and TimeBasedFileNamingAndTriggeringPolicyBase to enable periodic loggic

Murali Rath (JIRA) noreply-jira at qos.ch
Fri Oct 7 07:20:17 CEST 2011


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

Murali Rath updated LBCLASSIC-298:
----------------------------------

    Attachment: logback.xml
                PeriodicTimeBasedFileNamingAndTriggeringPolicy.java
                PeriodicRollingCalendar.java

A simple solution which extends the existing  TimeBasedFileNamingAndTriggeringPolicyBase and RollingCalendar is attached. The usage can be found in logback.xml 
This can be much simpler to modify the classes TimeBasedFileNamingAndTriggeringPolicyBase  and RollingCalendar 

> improve RollingCalendar and TimeBasedFileNamingAndTriggeringPolicyBase to enable periodic loggic
> ------------------------------------------------------------------------------------------------
>
>                 Key: LBCLASSIC-298
>                 URL: http://jira.qos.ch/browse/LBCLASSIC-298
>             Project: logback-classic
>          Issue Type: New Feature
>          Components: appender
>    Affects Versions: 0.9.29
>         Environment: all
>            Reporter: Murali Rath
>            Assignee: Logback dev list
>         Attachments: logback.xml, PeriodicRollingCalendar.java, PeriodicTimeBasedFileNamingAndTriggeringPolicy.java
>
>
> logback currently allows logging periodically however it is limited to every 1 sec, 1 min, 1 hr , 1 day etc. When I want the log file to roll over say every 10 sec or 20 minutes it is not possible.  RollingCalendar and TimeBasedFileNamingAndTriggeringPolicyBase can be improved or extened to provide this functionality.

-- 
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