|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ErrorHandler
Appenders may delegate their error handling to ErrorHandlers
.
TODO if the appender interface is simplified, then error handling could just be done by wrapping
a nested appender. (RG) Please look at DefaultErrorHandler. It's purpose is to make sure the console
or error log isn't flooded with messages. I'm still considering the Appender refactoring.
Method Summary | |
---|---|
void |
error(String msg)
Handle an error with a message. |
void |
error(String msg,
LogEvent event,
Throwable t)
Handle an error with a message, and exception and a logging event. |
void |
error(String msg,
Throwable t)
Handle an error with a message and an exception. |
Method Detail |
---|
void error(String msg)
msg
- The message.void error(String msg, Throwable t)
msg
- The message.t
- The Throwable.void error(String msg, LogEvent event, Throwable t)
msg
- The message.event
- The LogEvent.t
- The Throwable.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2015 Apache Software Foundation. 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.