Package org.apache.log4j.bridge
Class ErrorHandlerAdapter
java.lang.Object
org.apache.log4j.bridge.ErrorHandlerAdapter
- All Implemented Interfaces:
ErrorHandler
Makes a Log4j 1 ErrorHandler usable by a Log4j 2 Appender.
-
Field Summary
Fields -
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, and exception and a logging event.
-
Field Details
-
errorHandler
-
-
Constructor Details
-
ErrorHandlerAdapter
-
-
Method Details
-
getHandler
-
error
Description copied from interface:ErrorHandlerHandle an error with a message.- Specified by:
errorin interfaceErrorHandler- Parameters:
msg- The message.
-
error
Description copied from interface:ErrorHandlerHandle an error with a message and an exception.- Specified by:
errorin interfaceErrorHandler- Parameters:
msg- The message.t- The Throwable.
-
error
Description copied from interface:ErrorHandlerHandle an error with a message, and exception and a logging event.- Specified by:
errorin interfaceErrorHandler- Parameters:
msg- The message.event- The LogEvent.t- The Throwable.
-