org.inspektr.error.support
Class CommonsLoggingErrorReporter

java.lang.Object
  extended by org.inspektr.error.support.CommonsLoggingErrorReporter
All Implemented Interfaces:
ErrorReporter

public final class CommonsLoggingErrorReporter
extends 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

Constructor Summary
CommonsLoggingErrorReporter()
           
 
Method Summary
 void reportError(String applicationCode, String principal, String description)
          Reports the specified error.
 void reportError(String applicationCode, String principal, Throwable throwable)
          Reports the specified Throwable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonsLoggingErrorReporter

public CommonsLoggingErrorReporter()
Method Detail

reportError

public void reportError(String applicationCode,
                        String principal,
                        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(String applicationCode,
                        String principal,
                        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-2012. All Rights Reserved.