public class DefaultErrorLogManager extends Object implements ErrorLogManager
ErrorLogManager implementation.| Constructor and Description |
|---|
DefaultErrorLogManager(String applicationCode,
List<ErrorReporter> errorReporters)
Constructs a new
DefaultErrorLogManager. |
| Modifier and Type | Method and Description |
|---|---|
List<ErrorReporter> |
getErrorReporters()
Returns the list of
ErrorReporter associated with this manager. |
void |
recordError(String errorDescription)
Records the specified error.
|
void |
recordError(Throwable throwable)
Records the specified throwable.
|
void |
setCurrentContextPrincipalResolver(PrincipalResolver resolver)
Sets the
currentContextPrincipalResolver. |
public DefaultErrorLogManager(String applicationCode, List<ErrorReporter> errorReporters)
DefaultErrorLogManager.applicationCode - The application identifier to use when reporting errors.errorReporters - A list of ErrorReporters to use for reporting errors.public void setCurrentContextPrincipalResolver(PrincipalResolver resolver)
currentContextPrincipalResolver. The resolver will be
used to resolve current context information on the principal.resolver - the CurrentContextPrincipalResolver to use.public void recordError(String errorDescription)
ErrorLogManagerrecordError in interface ErrorLogManagererrorDescription - The error description.public void recordError(Throwable throwable)
ErrorLogManagerrecordError in interface ErrorLogManagerthrowable - The throwable describing the error.public List<ErrorReporter> getErrorReporters()
ErrorLogManagerErrorReporter associated with this manager.getErrorReporters in interface ErrorLogManagerErrorReporters.Copyright © 2007-2015 Jasig. All Rights Reserved.