public interface Logger
A logger is used to write messages to a log file. Each message has an associated level of severity. In increasing order these are:
Please see
LoggerConstants
for the associated numeric values for each level.
Modifier and Type | Method and Description |
---|---|
boolean |
isDebuggingEnabled()
Returns true if debugging messages are enabled.
|
boolean |
isLoggerEnabled()
Returns true if logger is enabled.
|
void |
log(int level,
java.lang.String str)
Log a message at a specified level.
|
void |
log(int level,
java.lang.String str,
java.lang.Throwable t)
Log a message with a stack trace.
|
void |
logDebug(java.lang.String str)
Log a message at the Debug level.
|
void |
logError(java.lang.String str)
Log a message at the Error level.
|
void |
logError(java.lang.String str,
java.lang.Throwable t)
Logs a error message with a stack trace.
|
void |
logFatal(java.lang.String str)
Log a message at the Fatal level.
|
void |
logFatal(java.lang.String str,
java.lang.Throwable t)
Logs a fatal message with a stack trace.
|
void |
logInfo(java.lang.String str)
Log a message at the Info level.
|
void |
logWarning(java.lang.String str)
Log a message at the Warn level.
|
void |
terminate()
Terminate.logger.
|
void logDebug(java.lang.String str)
str
- Log message.void logInfo(java.lang.String str)
str
- Log message.void logWarning(java.lang.String str)
str
- Log message.void logError(java.lang.String str)
str
- Log message.void logError(java.lang.String str, java.lang.Throwable t)
str
- Log message.t
- Throwable.void logFatal(java.lang.String str)
str
- Log message.void logFatal(java.lang.String str, java.lang.Throwable t)
str
- Log message.t
- Throwable.void log(int level, java.lang.String str)
level
- Message level.
See LoggerConstants
for the allowed values.str
- Log message.void log(int level, java.lang.String str, java.lang.Throwable t)
level
- Message level.
See LoggerConstants
for the allowed values.str
- Log message.t
- Throwable.boolean isDebuggingEnabled()
boolean isLoggerEnabled()
void terminate()