public class ExceptionLoggingMonitor extends java.lang.Object implements ExceptionMonitor
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.| Modifier | Constructor and Description |
|---|---|
protected |
ExceptionLoggingMonitor()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
exceptionCaught(java.lang.Throwable exception)
Invoked when a uncaught exception is thrown.
|
static ExceptionLoggingMonitor |
getInstance()
Returns the instance.
|
protected static void |
logError(java.lang.String message,
java.lang.Throwable cause) |
protected ExceptionLoggingMonitor()
protected static void logError(java.lang.String message,
java.lang.Throwable cause)
public static ExceptionLoggingMonitor getInstance()
public void exceptionCaught(java.lang.Throwable exception)
ExceptionMonitorexceptionCaught in interface ExceptionMonitorCopyright © 2004-2012 Trustin Lee. All Rights Reserved.