Interface Log
public interface Log
Provides a slightly easier to use API compared to the JDK
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.- Author:
- cdivilly
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidLog a message at theFINElevelvoidvoidLog a message at theFINERlevelvoidvoidLog a message at theFINESTlevelvoidvoidLog a message at theINFOlevelvoidbooleanisLoggable(Level level) Determines if the specified logLevelis enabled for this loggervoidLog a message at theSEVERElevelvoidvoidLog a message at theWARNINGlevelvoid
-
Field Details
-
FINE
- See Also:
-
FINER
- See Also:
-
FINEST
- See Also:
-
INFO
- See Also:
-
SEVERE
- See Also:
-
WARNING
- See Also:
-
-
Method Details
-
fine
Log a message at theFINElevel- Parameters:
msg- The message to log
-
fine
- Parameters:
t- The exception to log
-
finer
Log a message at theFINERlevel- Parameters:
msg- The message to log
-
finer
- Parameters:
t- The exception to log
-
finest
Log a message at theFINESTlevel- Parameters:
msg- The message to log
-
finest
- Parameters:
t- The exception to log
-
info
Log a message at theINFOlevel- Parameters:
msg- The message to log
-
info
- Parameters:
t- The exception to log
-
isLoggable
Determines if the specified logLevelis enabled for this logger- Parameters:
level- The logging level to test- Returns:
- true if the level is enabled, false otherwise
-
severe
Log a message at theSEVERElevel- Parameters:
msg- The message to log
-
severe
- Parameters:
t- The exception to log
-
warning
Log a message at theWARNINGlevel- Parameters:
msg- The message to log
-
warning
- Parameters:
t- The exception to log
-