org.inspektr.error.support
Class CommonsLoggingErrorReporter
java.lang.Object
org.inspektr.error.support.CommonsLoggingErrorReporter
- All Implemented Interfaces:
- ErrorReporter
public final class CommonsLoggingErrorReporter
- extends java.lang.Object
- implements ErrorReporter
An ErrorReporter
implementation that logs errors to a configured
log4j Appender
.
- Since:
- 1.0
- Version:
- $Revision: 1.3 $ $Date: 2007/07/11 20:48:47 $
- Author:
- lleung
Method Summary |
void |
reportError(java.lang.String applicationCode,
java.lang.String principal,
java.lang.String description)
Reports the specified error. |
void |
reportError(java.lang.String applicationCode,
java.lang.String principal,
java.lang.Throwable throwable)
Reports the specified Throwable . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommonsLoggingErrorReporter
public CommonsLoggingErrorReporter()
reportError
public void reportError(java.lang.String applicationCode,
java.lang.String principal,
java.lang.String description)
- Description copied from interface:
ErrorReporter
- Reports the specified error.
- Specified by:
reportError
in interface ErrorReporter
- Parameters:
applicationCode
- The application identifier.principal
- Optional application-specific context information on the
principal incurring the error.description
- Details on the error.
reportError
public void reportError(java.lang.String applicationCode,
java.lang.String principal,
java.lang.Throwable throwable)
- Description copied from interface:
ErrorReporter
- Reports the specified
Throwable
.
- Specified by:
reportError
in interface ErrorReporter
- Parameters:
applicationCode
- The application identifier.principal
- Optional application-specific context information on the
principal incurring the error.throwable
- The Throwable
to be reported.
Copyright © 2007-2011. All Rights Reserved.