Logger.SystemLogger
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
DEBUG |
private static java.lang.String |
ERROR |
private static java.lang.String |
INFO |
private boolean |
useSyserrForErr |
private boolean |
useSyserrForWarn |
private static java.lang.String |
WARNING |
Constructor and Description |
---|
SystemLogger(boolean useSyserrForWarn,
boolean useSyserrForErr) |
Modifier and Type | Method and Description |
---|---|
void |
debug(java.lang.CharSequence content)
Send a message to the user in the debug error level.
|
void |
debug(java.lang.CharSequence content,
java.lang.Throwable error)
Send a message (and accompanying exception) to the user in the debug error level.
|
void |
debug(java.lang.Throwable error)
Send an exception to the user in the debug error level.
|
void |
error(java.lang.CharSequence content)
Send a message to the user in the error error level.
|
void |
error(java.lang.CharSequence content,
java.lang.Throwable error)
Send a message (and accompanying exception) to the user in the error error level.
|
void |
error(java.lang.Throwable error)
Send an exception to the user in the error error level.
|
void |
info(java.lang.CharSequence content)
Send a message to the user in the info error level.
|
void |
info(java.lang.CharSequence content,
java.lang.Throwable error)
Send a message (and accompanying exception) to the user in the info error level.
|
void |
info(java.lang.Throwable error)
Send an exception to the user in the info error level.
|
void |
warn(java.lang.CharSequence content)
Send a message to the user in the warn error level.
|
void |
warn(java.lang.CharSequence content,
java.lang.Throwable error)
Send a message (and accompanying exception) to the user in the warn error level.
|
void |
warn(java.lang.Throwable error)
Send an exception to the user in the warn error level.
|
private static final java.lang.String ERROR
private static final java.lang.String WARNING
private static final java.lang.String DEBUG
private static final java.lang.String INFO
private final boolean useSyserrForWarn
private final boolean useSyserrForErr
public SystemLogger(boolean useSyserrForWarn, boolean useSyserrForErr)
public void debug(java.lang.CharSequence content)
Logger
public void debug(java.lang.CharSequence content, java.lang.Throwable error)
Logger
public void debug(java.lang.Throwable error)
Logger
public void info(java.lang.CharSequence content)
Logger
public void info(java.lang.CharSequence content, java.lang.Throwable error)
Logger
public void info(java.lang.Throwable error)
Logger
public void warn(java.lang.CharSequence content)
Logger
public void warn(java.lang.CharSequence content, java.lang.Throwable error)
Logger
public void warn(java.lang.Throwable error)
Logger
public void error(java.lang.CharSequence content)
Logger
public void error(java.lang.CharSequence content, java.lang.Throwable error)
Logger