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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidHandle an error with a message.voidHandle an error with a message and an exception.voidHandle 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:
errorin interfaceErrorHandler- Parameters:
msg- a message
-
error
Handle an error with a message and an exception.- Specified by:
errorin interfaceErrorHandler- Parameters:
msg- a messageerror- aThrowable
-
error
Handle an error with a message, an exception, and a logging event.- Specified by:
errorin interfaceErrorHandler- Parameters:
msg- a messageevent- aLogEventerror- aThrowable
-
getAppender
-