[logback-user] listening on rolling events

Ceki Gulcu ceki at qos.ch
Wed Nov 16 15:36:26 CET 2011

On 16.11.2011 14:47, Yair Ogen wrote:
> Hi,
> Is there a way to add a listener to a RollingFileAppender so each time
> it rolls I can run some code in a call back function?

You can have a StatusListener which will see all status messages, 
including those generated by rollover. Your listener can ignore all 
status messages except those pertaining to rollover.

let us know if it the above works for you,


More information about the Logback-user mailing list