public interface BasicLogger
This interface defines a customized version of the Logger
API exposing only its basic, most commonly used methods.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Retrieve the logger's name.
|
boolean |
isLoggable(java.util.logging.Level level)
Confirms whether or not the logger is currently set to publish messages
at the given level.
|
void |
log(java.util.logging.Level level,
java.lang.String message)
Log a message at the specified level, if and only if the logger is currently
set to publish messages at that level.
|
void |
log(java.util.logging.Level level,
java.lang.String message,
java.lang.Throwable error)
Log a message at the specified level, if and only if the logger is currently
set to publish messages at that level.
|
void |
log(java.util.logging.Level level,
java.lang.Throwable error)
Log a message at the specified level, based on the given error,
if and only if the logger is currently set to publish messages at that level.
|
java.lang.String getName()
void log(java.util.logging.Level level, java.lang.String message)
level
- The level which the message should be logged atmessage
- The message to be loggedvoid log(java.util.logging.Level level, java.lang.String message, java.lang.Throwable error)
level
- The level which the message should be logged atmessage
- The message to be loggederror
- Error which to include relevant details from. It is up to
each implementation to decide which details are relevant.void log(java.util.logging.Level level, java.lang.Throwable error)
level
- The level which the message should be logged aterror
- Error which to derive the log message and also include relevant
details from. It is up to each implementation to decide the log message and
which details are relevant to include.boolean isLoggable(java.util.logging.Level level)
level
- Level to check