Does anyone have an idea other than Status Manager which does not work.

As a reference, I am looking for something similar to the feature supported in:

http://www.simonsite.org.uk/javadoc/org/apache/log4j/appender/TimeAndSizeRollingAppender.html#setFileRollEventListener(java.lang.String)

In the above, the listener can write the the new file (after the roll) - before any other logger will write to the new file. This is exactly what I need.

Thanks,

Yair

On Wed, Nov 16, 2011 at 15:47, Yair Ogen <yairogen@gmail.com> 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?

Thanks.

Yair