[logback-user] how to remove old log files in this sifting appender configuration
Andreas Kruthoff
andreas.kruthoff at nexustelecom.com
Thu Jul 26 17:39:58 CEST 2012
I've referenced http://jira.qos.ch/browse/LOGBACK-244 from
http://jira.qos.ch/browse/LOGBACK-724
thanks for the hint
-andreas
On 07/26/2012 05:16 PM, Becker, Thomas wrote:
> FYI I created an RFE for this back in Feburary. There definitely needs to be a way to make this timeout shorter and make SiftingAppender clean up fds more aggressively.
>
> http://jira.qos.ch/browse/LOGBACK-244
>
> -----Original Message-----
> From: logback-user-bounces at qos.ch [mailto:logback-user-bounces at qos.ch] On Behalf Of ceki
> Sent: Tuesday, July 17, 2012 10:13 AM
> To: logback users list
> Subject: Re: [logback-user] how to remove old log files in this sifting appender configuration
>
> On 17.07.2012 15:15, Andreas Kruthoff wrote:
>> On 07/11/2012 05:30 PM, ceki wrote:
>>> SiftingAppener cleans unused appenders after 30 minutes.
>>
>> Will you make it configurable in a future release of logback? I could
>> use such a feature.
>
> If there is demand for it, then yes. If you would be interested in such a feature please create a jira issue asking for it.
>
> SMTPAppender which shares similarities with SiftingAppender, will discard buffers when an a logging event with the marker "FINALIZE_SESSION" is encountered. See [1, 2]. So it would be quite easy to add functionality to immediately discard and appender upon an event determined by the developer.
>
> [1] http://tinyurl.com/cyh5mv9
> [2] http://tinyurl.com/cho3g5k
>
> --
> Ceki
> http://tinyurl.com/proLogback
>
>
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://mailman.qos.ch/mailman/listinfo/logback-user
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://mailman.qos.ch/mailman/listinfo/logback-user
>
This email and any attachment may contain confidential information which is intended for use only by the addressee(s) named above. If you received this email by mistake, please notify the sender immediately, and delete the email from your system. You are prohibited from copying, disseminating or otherwise using the email or any attachment.
More information about the Logback-user
mailing list