Package com.restfb.logging
Class JulLogger
java.lang.Object
com.restfb.logging.RestFBLogger
com.restfb.logging.JulLogger
Logger implementation based on
java.util.logging
.
The JUL configuration should be provided by a external application. The mapping is defined like:
- trace maps to java.util.logging.Level.FINER
- debug maps to java.util.logging.Level.FINE
- info maps to java.util.logging.Level.INFO
- warn maps to java.util.logging.Level.WARNING
- error maps to java.util.logging.Level.SEVERE
- fatal maps to java.util.logging.Level.SEVERE
-
Field Summary
Fields inherited from class com.restfb.logging.RestFBLogger
CLIENT_LOGGER, HTTP_LOGGER, MAPPER_LOGGER, UTILS_LOGGER, VALUE_FACTORY_LOGGER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Log a message at the DEBUG level according to the specified format and arguments.void
Log a message at the ERROR level according to the specified format and arguments.void
Log a message at the FATAL level according to the specified format and arguments.void
Log a message at the INFO level according to the specified format and arguments.boolean
Is the logger instance enabled for the DEBUG level?boolean
Is the logger instance enabled for the INFO level?boolean
Is the logger instance enabled for the TRACE level?void
Log a message at the TRACE level according to the specified format and arguments.void
Log a message at the WARN level according to the specified format and arguments.Methods inherited from class com.restfb.logging.RestFBLogger
getLoggerInstance
-
Constructor Details
-
JulLogger
-
-
Method Details
-
trace
Description copied from class:RestFBLogger
Log a message at the TRACE level according to the specified format and arguments.- Specified by:
trace
in classRestFBLogger
- Parameters:
msg
- the log messageargs
- optional arguments, the last argument may be an exception
-
debug
Description copied from class:RestFBLogger
Log a message at the DEBUG level according to the specified format and arguments.- Specified by:
debug
in classRestFBLogger
- Parameters:
msg
- the log messageargs
- optional arguments, the last argument may be an exception
-
info
Description copied from class:RestFBLogger
Log a message at the INFO level according to the specified format and arguments.- Specified by:
info
in classRestFBLogger
- Parameters:
msg
- the log messageargs
- optional arguments, the last argument may be an exception
-
warn
Description copied from class:RestFBLogger
Log a message at the WARN level according to the specified format and arguments.- Specified by:
warn
in classRestFBLogger
- Parameters:
msg
- the log messageargs
- optional arguments, the last argument may be an exception
-
error
Description copied from class:RestFBLogger
Log a message at the ERROR level according to the specified format and arguments.- Specified by:
error
in classRestFBLogger
- Parameters:
msg
- the log messageargs
- optional arguments, the last argument may be an exception
-
fatal
Description copied from class:RestFBLogger
Log a message at the FATAL level according to the specified format and arguments.- Specified by:
fatal
in classRestFBLogger
- Parameters:
msg
- the log messageargs
- optional arguments, the last argument may be an exception
-
isDebugEnabled
Description copied from class:RestFBLogger
Is the logger instance enabled for the DEBUG level?- Specified by:
isDebugEnabled
in classRestFBLogger
- Returns:
true
if it is enabled,false
otherwise
-
isInfoEnabled
Description copied from class:RestFBLogger
Is the logger instance enabled for the INFO level?- Specified by:
isInfoEnabled
in classRestFBLogger
- Returns:
true
if it is enabled,false
otherwise
-
isTraceEnabled
Description copied from class:RestFBLogger
Is the logger instance enabled for the TRACE level?- Specified by:
isTraceEnabled
in classRestFBLogger
- Returns:
true
if it is enabled,false
otherwise
-