public class VoidApplicationLogger extends java.lang.Object implements ApplicationLogger
ApplicationLogger
does not display or store the received messages anywhere.
It can be used as a default implementation, if no logger is necessary in a process that expects a logger
parameter.Constructor and Description |
---|
VoidApplicationLogger() |
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.
|
public VoidApplicationLogger()
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