Interface Log
-
public interface Log
Provides a slightly easier to use API compared to the JDKLogger
API. Use @Inject
annotation to inject aLog
instance into a service. This API provides consistent method overrides for all standardLogger
Level
s. Two different methods are provided for each level, one taking aString
message, and the other taking aThrowable
. Note use of this API is optional, plugins can depend on a standard JDKLogger
instance if they prefer.- Author:
- cdivilly
- See Also:
AvailableDependencies.LOG
-
<section role="region">
-
Field Summary
Fields Modifier and Type Field Description static java.util.logging.Level
FINE
static java.util.logging.Level
FINER
static java.util.logging.Level
FINEST
static java.util.logging.Level
INFO
static java.util.logging.Level
SEVERE
static java.util.logging.Level
WARNING
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
fine(java.lang.String msg)
Log a message at theFINE
levelvoid
fine(java.lang.Throwable t)
Log aThrowable
at theFINE
levelvoid
finer(java.lang.String msg)
Log a message at theFINER
levelvoid
finer(java.lang.Throwable t)
Log aThrowable
at theFINE
levelvoid
finest(java.lang.String msg)
Log a message at theFINEST
levelvoid
finest(java.lang.Throwable t)
Log aThrowable
at theFINE
levelvoid
info(java.lang.String msg)
Log a message at theINFO
levelvoid
info(java.lang.Throwable t)
Log aThrowable
at theFINE
levelboolean
isLoggable(java.util.logging.Level level)
Determines if the specified logLevel
is enabled for this loggervoid
severe(java.lang.String msg)
Log a message at theSEVERE
levelvoid
severe(java.lang.Throwable t)
Log aThrowable
at theFINE
levelvoid
warning(java.lang.String msg)
Log a message at theWARNING
levelvoid
warning(java.lang.Throwable t)
Log aThrowable
at theFINE
level
-
-
<section role="region">
-
Field Detail
-
FINE
static final java.util.logging.Level FINE
- See Also:
Level.FINE
-
FINER
static final java.util.logging.Level FINER
- See Also:
Level.FINER
-
FINEST
static final java.util.logging.Level FINEST
- See Also:
Level.FINEST
-
INFO
static final java.util.logging.Level INFO
- See Also:
Level.INFO
-
SEVERE
static final java.util.logging.Level SEVERE
- See Also:
Level.SEVERE
-
WARNING
static final java.util.logging.Level WARNING
- See Also:
Level.WARNING
-
-
Method Detail
-
fine
void fine(java.lang.String msg)
Log a message at theFINE
level- Parameters:
msg
- The message to log
-
fine
void fine(java.lang.Throwable t)
Log aThrowable
at theFINE
level- Parameters:
t
- The exception to log
-
finer
void finer(java.lang.String msg)
Log a message at theFINER
level- Parameters:
msg
- The message to log
-
finer
void finer(java.lang.Throwable t)
Log aThrowable
at theFINE
level- Parameters:
t
- The exception to log
-
finest
void finest(java.lang.String msg)
Log a message at theFINEST
level- Parameters:
msg
- The message to log
-
finest
void finest(java.lang.Throwable t)
Log aThrowable
at theFINE
level- Parameters:
t
- The exception to log
-
info
void info(java.lang.String msg)
Log a message at theINFO
level- Parameters:
msg
- The message to log
-
info
void info(java.lang.Throwable t)
Log aThrowable
at theFINE
level- Parameters:
t
- The exception to log
-
isLoggable
boolean isLoggable(java.util.logging.Level level)
Determines if the specified logLevel
is enabled for this logger- Parameters:
level
- The logging level to test- Returns:
- true if the level is enabled, false otherwise
-
severe
void severe(java.lang.String msg)
Log a message at theSEVERE
level- Parameters:
msg
- The message to log
-
severe
void severe(java.lang.Throwable t)
Log aThrowable
at theFINE
level- Parameters:
t
- The exception to log
-
warning
void warning(java.lang.String msg)
Log a message at theWARNING
level- Parameters:
msg
- The message to log
-
warning
void warning(java.lang.Throwable t)
Log aThrowable
at theFINE
level- Parameters:
t
- The exception to log
-
-