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

ceki ceki at qos.ch
Tue Jul 17 16:13:24 CEST 2012


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




More information about the Logback-user mailing list