[logback-user] how to remove old log files in this sifting appender configuration

Becker, Thomas Thomas.Becker at netapp.com
Thu Jul 26 17:16:03 CEST 2012

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.


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


Logback-user mailing list
Logback-user at qos.ch

More information about the Logback-user mailing list