> There are a few time-triggered events occuring in log4j - for example, re-reading the \ > configuration, or rolling over a log file. > When those operations occur, it would sometimes be very useful if the client \ > application could be notified, so that it could perform whatever type of \ > post-processing is required. For example, after a rollover, the application could \ > want to perform some end-of-day processing on the closed file; or, after the \ > configuration has been re-read, the application could want to perform some kind of \ > integrity-checking on the new config. Is there any way of doing that right now? And \ > if not, is there something similar in the plans?
For v1.3, we have added some repository level event notifications (repository shutdown, repository reconfigured, etc). You can look at the current LoggerRepositoryEventListener.java in the current cvs if you are interested. Regarding rolling over a log file, that is something that the appender should support directly. You may want to look into extending the DailyRollingFileAppender to allow listeners to be attached. It sounds like a good idea. If you implement it, send in a patch so we can evaluate it and possible add it to the next release. -Mark -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
