com.github.inspektr.error.support
Class Slf4jLoggingErrorReporter

java.lang.Object
  extended by com.github.inspektr.error.support.Slf4jLoggingErrorReporter
All Implemented Interfaces:
ErrorReporter

public final class Slf4jLoggingErrorReporter
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
Slf4jLoggingErrorReporter()
           
 
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

Slf4jLoggingErrorReporter

public Slf4jLoggingErrorReporter()
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 Rutgers, the State University of New Jersey. All Rights Reserved.