Class DefaultErrorHandler
java.lang.Object
org.apache.logging.log4j.core.appender.DefaultErrorHandler
- All Implemented Interfaces:
ErrorHandler
The default
ErrorHandler
implementation falling back to StatusLogger
.
It avoids flooding the StatusLogger
by allowing either the first 3 errors or errors once every 5 minutes.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Handle an error with a message.void
Handle an error with a message and an exception.void
Handle an error with a message, an exception, and a logging event.
-
Constructor Details
-
DefaultErrorHandler
-
-
Method Details
-
error
Handle an error with a message.- Specified by:
error
in interfaceErrorHandler
- Parameters:
msg
- a message
-
error
Handle an error with a message and an exception.- Specified by:
error
in interfaceErrorHandler
- Parameters:
msg
- a messageerror
- aThrowable
-
error
Handle an error with a message, an exception, and a logging event.- Specified by:
error
in interfaceErrorHandler
- Parameters:
msg
- a messageevent
- aLogEvent
error
- aThrowable
-
getAppender
-