public interface Log
Logger API. Use @Inject annotation to inject a Log instance into a service. This API provides consistent method overrides for all standard Logger Levels. Two different methods are provided for each level, one taking a String message, and the other taking a Throwable. Note use of this API is optional, plugins can depend on a standard JDK Logger instance if they prefer.AvailableDependencies.LOG| Modifier and Type | Field and Description |
|---|---|
static Level |
FINE |
static Level |
FINER |
static Level |
FINEST |
static Level |
INFO |
static Level |
SEVERE |
static Level |
WARNING |
| Modifier and Type | Method and Description |
|---|---|
void |
fine(String msg)
Log a message at the
FINE level |
void |
fine(Throwable t)
|
void |
finer(String msg)
Log a message at the
FINER level |
void |
finer(Throwable t)
|
void |
finest(String msg)
Log a message at the
FINEST level |
void |
finest(Throwable t)
|
void |
info(String msg)
Log a message at the
INFO level |
void |
info(Throwable t)
|
boolean |
isLoggable(Level level)
Determines if the specified log
Level is enabled for this logger |
void |
severe(String msg)
Log a message at the
SEVERE level |
void |
severe(Throwable t)
|
void |
warning(String msg)
Log a message at the
WARNING level |
void |
warning(Throwable t)
|
static final Level FINE
Level.FINEstatic final Level FINER
Level.FINERstatic final Level FINEST
Level.FINESTstatic final Level INFO
Level.INFOstatic final Level SEVERE
Level.SEVEREstatic final Level WARNING
Level.WARNINGvoid fine(Throwable t)
t - The exception to logvoid finer(Throwable t)
t - The exception to logvoid finest(String msg)
FINEST levelmsg - The message to logvoid finest(Throwable t)
t - The exception to logvoid info(Throwable t)
t - The exception to logboolean isLoggable(Level level)
Level is enabled for this loggerlevel - The logging level to testvoid severe(String msg)
SEVERE levelmsg - The message to logvoid severe(Throwable t)
t - The exception to logvoid warning(String msg)
WARNING levelmsg - The message to logvoid warning(Throwable t)
t - The exception to log