java.lang.Object | |
↳ | org.apache.log4j.varia.FallbackErrorHandler |
The 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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
No options to activate.
| |||||||||||
Print a the error message passed as parameter on
System.err . | |||||||||||
Prints the message and the stack trace of the exception on
System.err . | |||||||||||
Prints the message and the stack trace of the exception on
System.err . | |||||||||||
The appender to which this error handler is attached.
| |||||||||||
Set the backup appender.
| |||||||||||
Adds the logger passed as parameter to the list of
loggers that we need to search for in case of appender failure.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.apache.log4j.spi.ErrorHandler
| |||||||||||
From interface
org.apache.log4j.spi.OptionHandler
|
No options to activate.
Print a the error message passed as parameter on
System.err
.
Prints the message and the stack trace of the exception on
System.err
.
Prints the message and the stack trace of the exception on
System.err
.
message | The message assoicated with the error. |
---|---|
e | The Exption that was thrown when the error occured. |
errorCode | The error code associated with the error. |
event | The logging event that the failing appender is asked to log. |
Adds the logger passed as parameter to the list of loggers that we need to search for in case of appender failure.
logger | One of the loggers that will be searched for the failing appender in view of replacement. |
---|