[logback-dev] [JIRA] Commented: (LBCORE-60) Allow rolling based on time or file size

Szel Zoltan (JIRA) noreply-jira at qos.ch
Fri Oct 17 18:35:21 CEST 2008


    [ http://jira.qos.ch/browse/LBCORE-60?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=10780#action_10780 ] 

Szel Zoltan commented on LBCORE-60:
-----------------------------------

I am asking for a different thing. What i would like to be able to do is to tell the rollingappender to roll over every midnight, but if the output log file (the current one) has reached the size of 100MB than do an additional roll over. This is a kind of combining the timebased rolling policy with the sizebased triggering policy. 

What i think about is a kind of compound triggering policy. You can add several(2 in this case) triggering policies to it and in the isTriggeringEvent method the compound policy will ask the triggering policies iis it time to roll over. If one of them answers yes, than a rollover will happen.

I hope this makes clearer what this issue is about.

Thanks for your attention!

Regards,
Zoltan

> Allow rolling based on time or file size
> ----------------------------------------
>
>                 Key: LBCORE-60
>                 URL: http://jira.qos.ch/browse/LBCORE-60
>             Project: logback-core
>          Issue Type: New Feature
>          Components: Appender
>    Affects Versions: 0.9.9
>            Reporter: Szel Zoltan
>            Assignee: Ceki Gulcu
>
> The rolling grouping file appender allows to roll over on a specific interval(TimeBasedRollingPolicy) or when the log file has reached a specific file size. But unfortunately Logback does not support both to use together. For example if i want to roll over every day but i also want to roll the file when it is greater than 100MB.
> Please consider adding this feature to Logback and feel free to contact me if further clarification is required.
> Thanks,
> Zoltan Szel

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