public class DefaultErrorLogManager extends java.lang.Object implements ErrorLogManager
ErrorLogManager implementation.| Constructor and Description |
|---|
DefaultErrorLogManager(java.lang.String applicationCode,
java.util.List<ErrorReporter> errorReporters)
Constructs a new
DefaultErrorLogManager. |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<ErrorReporter> |
getErrorReporters()
Returns the list of
ErrorReporter associated with this manager. |
void |
recordError(java.lang.String errorDescription)
Records the specified error.
|
void |
recordError(java.lang.Throwable throwable)
Records the specified throwable.
|
void |
setCurrentContextPrincipalResolver(PrincipalResolver resolver)
Sets the
currentContextPrincipalResolver. |
public DefaultErrorLogManager(java.lang.String applicationCode,
java.util.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(java.lang.String errorDescription)
ErrorLogManagerrecordError in interface ErrorLogManagererrorDescription - The error description.public void recordError(java.lang.Throwable throwable)
ErrorLogManagerrecordError in interface ErrorLogManagerthrowable - The throwable describing the error.public java.util.List<ErrorReporter> getErrorReporters()
ErrorLogManagerErrorReporter associated with this manager.getErrorReporters in interface ErrorLogManagerErrorReporters.Copyright © 2007-2017 Apereo. All Rights Reserved.