public interface InfoLogger
This interface defines a minimum set of level-related methods to be exposed by an implementing logger, and these methods will imply as the log level to be used.
Modifier and Type | Field and Description |
---|---|
static java.util.logging.Level |
LEVEL
The logging level to be implied by methods defined in this interface
|
Modifier and Type | Method and Description |
---|---|
void |
info(java.lang.String message)
Log a message at level , if and only if the logger is currently
set to publish messages at that level.
|
void |
info(java.lang.String message,
java.lang.Throwable error)
Log a message at level , if and only if the logger is currently
set to publish messages at that level.
|
void |
info(java.lang.Throwable error)
Log a message at level , based on the given error.
|
boolean |
isInfo()
Confirms whether or not the logger is currently set to publish messages
at level .
|
static final java.util.logging.Level LEVEL
Level.INFO
void info(java.lang.String message)
message
- The message to be loggedvoid info(java.lang.String message, java.lang.Throwable error)
message
- 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 info(java.lang.Throwable error)
error
- 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 isInfo()