[logback-user] How to do this requirement

Roger Thomas roger.thomas at p-mail.eu
Mon Oct 6 02:13:31 CEST 2014


Yes, this can be done with a TimeBasedRollingPolicy

http://logback.qos.ch/manual/appenders.html#TimeBasedRollingPolicy

Roger

On 06/10/2014 00:20, Ren, Kevin wrote:
>
> Hi,
>
> Is it possible to keep the current log for last X days? archived the 
> X+1 day back to another file.
>
> Thanks
>
> Kevin
>
> ------------------------------------------------------------------------
>
> *Confidentiality notice:*
> This email may contain information that is confidential or legally 
> privileged. If you have received it by mistake, please:
> (1) reply promptly to that effect, and remove this email and the reply 
> from your system;
> (2) do not act on this email in any other way.
> Thank you.
>
> ------------------------------------------------------------------------
>
>
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://mailman.qos.ch/mailman/listinfo/logback-user

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20141006/1ad8e19a/attachment.html>


More information about the Logback-user mailing list