|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ceryle.util.MessageWriterAppender.MWErrorHandler
protected class MessageWriterAppender.MWErrorHandler
A quick and dirty inner class to implement ErrorHandler, which just spits its output to the underlying MessageWriter.
| Constructor Summary | |
|---|---|
protected |
MessageWriterAppender.MWErrorHandler()
|
| Method Summary | |
|---|---|
void |
activateOptions()
Does nothing. |
void |
error(String message)
This method is normally used to just print the error message passed as a parameter. |
void |
error(String message,
Exception e,
int errorCode)
Equivalent to the error(String, Exception, int, LoggingEvent event) with the the event parameteter set to null. |
void |
error(String message,
Exception e,
int errorCode,
org.apache.log4j.spi.LoggingEvent event)
This method is invoked to handle the error. |
void |
setAppender(org.apache.log4j.Appender appender)
Set the appender for which errors are handled. |
void |
setBackupAppender(org.apache.log4j.Appender appender)
Set the appender to falkback upon in case of failure. |
void |
setLogger(org.apache.log4j.Logger logger)
Add a reference to a logger to which the failing appender might be attached to. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected MessageWriterAppender.MWErrorHandler()
| Method Detail |
|---|
public void error(String message)
error in interface org.apache.log4j.spi.ErrorHandler
public void error(String message,
Exception e,
int errorCode)
error in interface org.apache.log4j.spi.ErrorHandler
public void error(String message,
Exception e,
int errorCode,
org.apache.log4j.spi.LoggingEvent event)
error in interface org.apache.log4j.spi.ErrorHandlerpublic void setAppender(org.apache.log4j.Appender appender)
setAppender in interface org.apache.log4j.spi.ErrorHandlerpublic void setBackupAppender(org.apache.log4j.Appender appender)
setBackupAppender in interface org.apache.log4j.spi.ErrorHandlerpublic void setLogger(org.apache.log4j.Logger logger)
setLogger in interface org.apache.log4j.spi.ErrorHandlerpublic void activateOptions()
activateOptions in interface org.apache.log4j.spi.OptionHandler
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||