You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by norbimou <no...@gmail.com> on 2005/05/23 18:00:46 UTC
Alternate appender in case of failure
I would like to set up an alternate appender in case of error of the
primary appender.
But I would like too that if the primary appender is up again, it
handles the events and the backup appender be closed.
I tried FallbackErrorHandler but it does not allow the primary appender
to be used again.
I tried too to set up a custom error handler based upon the
FallbackErrorHandler but I could not get this working (because the
ErrorHandler can not be notified when the primary appender is up again).
All that I could do was to keep the two appenders running simutaneously.
Do you have any idea to achieve my goal ?
thank you,
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org