logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <s.bou...@finmatica.com>
Subject Logging Event Listener
Date Mon, 11 Oct 2004 14:58:18 GMT
Hi,

 

I was wondering, if it would be great to have in next release of log4j a
complete system Event/lIstener  for :

-          Listening to appender events (AddAppenderEventListener ,
RemoveAppenderEventListener, fireAppenderEvent)

-          Listening to log Events (AddLoggingEventListener,
RemoveLoggingEventListener, fireLoggingEvent)

 

For instance, it could be interesting to listen to log events to know if
a log error was generated (Sometimes in 

Bad programming pratices, there is somewhere a try/catch block which is
not rethrowing exception catched).   

 

I know that a possible workaround for this problem is to create a
subclass of NullAppender and listen to events passed to appenders.

 

Any Ideas ? 

 

S├ębastien 


Mime
View raw message