|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.gleamynode.netty2.ExceptionLoggingMonitor
public class ExceptionLoggingMonitor
An ExceptionMonitor
which logs uncaught exceptions.
It tries to log an exception using Apache Jakarta Commons Logging first.
If failed, it will write it out to stderr.
Constructor Summary | |
---|---|
protected |
ExceptionLoggingMonitor()
Creates a new instance. |
Method Summary | |
---|---|
void |
exceptionCaught(Throwable exception)
Invoked when a uncaught exception is thrown. |
static ExceptionLoggingMonitor |
getInstance()
Returns the instance. |
protected static void |
logError(String message,
Throwable cause)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ExceptionLoggingMonitor()
Method Detail |
---|
protected static void logError(String message, Throwable cause)
public static ExceptionLoggingMonitor getInstance()
public void exceptionCaught(Throwable exception)
ExceptionMonitor
exceptionCaught
in interface ExceptionMonitor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |