public interface Logger
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getLoggerId()
Gets the unique logging identifier associated with a given logger instance.
|
java.util.logging.Level |
getLogLevel()
Gets the current logging level associated with a given logger instance.
|
void |
log(java.util.logging.Level level,
java.lang.String msg)
Logs a message string at the specified severity level.
|
void |
log(java.util.logging.Level level,
java.lang.String msg,
java.lang.Throwable thrown)
Logs message string and accompanying exception information at the specified
severity level.
|
void |
setLogLevel(java.util.logging.Level logLevel)
Sets the logging level to be used for a given logger instance.
|
void log(java.util.logging.Level level,
java.lang.String msg)
level - This is the severity level at which the message should be logged.msg - This is the message string which should be included in the log
file.void log(java.util.logging.Level level,
java.lang.String msg,
java.lang.Throwable thrown)
level - This is the severity level at which the message should be logged.msg - This is the message string which should be included in the log
file.thrown - This is the exception which should be logged with the accompanying
message.java.lang.String getLoggerId()
java.util.logging.Level getLogLevel()
void setLogLevel(java.util.logging.Level logLevel)
logLevel - This is the log level to be used by the logger instance for all
future log messages.