public class MultipleApplicationLoggersAdapter extends java.lang.Object implements ApplicationLogger
ApplicationLogger
delegates to a set of other classes implementing
this interface. It can be used of several different implementations of ApplicationLogger
should monitor a process at the same time.Constructor and Description |
---|
MultipleApplicationLoggersAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
addError(java.lang.String message)
Outputs an error message to the user.
|
void |
addError(java.lang.String message,
int helpCode)
Outputs an error message to the user.
|
void |
addError(java.lang.Throwable throwable,
boolean includeStackTrace)
Outputs an error message to the user.
|
void |
addError(java.lang.Throwable throwable,
boolean includeStackTrace,
int helpCode)
Outputs an error message to the user.
|
void |
addMessage(ApplicationLoggerMessage message)
Outputs a usual message to the user.
|
void |
addMessage(java.lang.String message)
Outputs a usual message to the user.
|
void |
addMessage(java.lang.String message,
int helpCode)
Outputs a usual message to the user.
|
void |
addWarning(java.lang.String message)
Outputs a warning message to the user.
|
void |
addWarning(java.lang.String message,
int helpCode)
Outputs a warning message to the user.
|
java.util.Collection<ApplicationLogger> |
getLoggers() |
public MultipleApplicationLoggersAdapter()
public java.util.Collection<ApplicationLogger> getLoggers()
public void addMessage(ApplicationLoggerMessage message)
ApplicationLogger
addMessage
in interface ApplicationLogger
public void addMessage(java.lang.String message)
ApplicationLogger
addMessage
in interface ApplicationLogger
public void addMessage(java.lang.String message, int helpCode)
ApplicationLogger
addMessage
in interface ApplicationLogger
helpCode
- the help code associated with this messagespublic void addWarning(java.lang.String message)
ApplicationLogger
addWarning
in interface ApplicationLogger
public void addWarning(java.lang.String message, int helpCode)
ApplicationLogger
addWarning
in interface ApplicationLogger
helpCode
- the help code associated with this warningpublic void addError(java.lang.String message)
ApplicationLogger
addError
in interface ApplicationLogger
public void addError(java.lang.String message, int helpCode)
ApplicationLogger
addError
in interface ApplicationLogger
helpCode
- the help code associated with this warningpublic void addError(java.lang.Throwable throwable, boolean includeStackTrace)
ApplicationLogger
addError
in interface ApplicationLogger
throwable
- the Throwable describing the errorincludeStackTrace
- Specify true
here, if you want the whole stack trace to
be included in the error message or false
, if only the message shall be
contained in the output.public void addError(java.lang.Throwable throwable, boolean includeStackTrace, int helpCode)
ApplicationLogger
addError
in interface ApplicationLogger
throwable
- the Throwable describing the errorincludeStackTrace
- Specify true
here, if you want the whole stack trace to
be included in the error message or false
, if only the message shall be
contained in the output.helpCode
- the help code associated with this warning