
16 Nov
2011
16 Nov
'11
2:36 p.m.
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, -- Ceki