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 - void finer(Throwable t)
t - void finest(Throwable t)
t - void info(Throwable t)
t - boolean isLoggable(Level level)
Level is enabled for this loggerlevel - The logging level to testvoid severe(Throwable t)
t - void warning(Throwable t)
t - Oracle REST Data Services Plugin API version: 3.0.0.65.09.35 Copyright © 2015 Oracle Corp. All Rights Reserved.