ErrorHandlerpublic class DefaultErrorHandler extends Object implements ErrorHandler
| Constructor | Description |
|---|---|
DefaultErrorHandler(Appender appender) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
error(String msg) |
Handle an error with a message.
|
void |
error(String msg,
Throwable t) |
Handle an error with a message and an exception.
|
void |
error(String msg,
LogEvent event,
Throwable t) |
Handle an error with a message, and exception and a logging event.
|
Appender |
getAppender() |
public DefaultErrorHandler(Appender appender)
public void error(String msg)
error in interface ErrorHandlermsg - The message.public void error(String msg, Throwable t)
error in interface ErrorHandlermsg - The message.t - The Throwable.public void error(String msg, LogEvent event, Throwable t)
error in interface ErrorHandlermsg - The message.event - The LogEvent.t - The Throwable.public Appender getAppender()
Copyright © 1999-2018. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.