Public Member Functions | |
void | setLogger (const LoggerPtr &logger) |
void | activateOptions () |
void | setOption (const String &name, const String &value) |
void | error (const String &message, helpers::Exception &e, int errorCode) const |
void | error (const String &message, helpers::Exception &e, int errorCode, const spi::LoggingEventPtr &event) const |
void | error (const String &message) const |
const AppenderPtr & | getBackupAppender () const |
void | setAppender (const AppenderPtr &primary) |
void | setBackupAppender (const AppenderPtr &backup) |
FallbackErrorHandler
implements the ErrorHandler interface such that a secondary appender may be specified. This secondary appender takes over if the primary appender fails for whatever reason.
The error message is printed on System.err
, and logged in the new secondary appender.
|
No options to activate. Implements OptionHandler. |
|
Print a the error message passed as parameter on Implements ErrorHandler. |
|
Prints the message and the stack trace of the exception on Implements ErrorHandler. |
|
Prints the message and the stack trace of the exception on Implements ErrorHandler. |
|
Return the backup appender. |
|
The appender to which this error handler is attached. Implements ErrorHandler. |
|
Set the backup appender. Implements ErrorHandler. |
|
Adds the logger passed as parameter to the list of loggers that we need to search for in case of appender failure. Implements ErrorHandler. |
|
Set The handling of each option depends on the OptionHandler instance. Some options may become active immediately whereas other may be activated only when activateOptions is called. Implements OptionHandler. |