Package com.restfb.logging
Class SLF4JLogger
java.lang.Object
com.restfb.logging.RestFBLogger
com.restfb.logging.SLF4JLogger
Logger implementation based on
org.slf4j.Logger.
The slf4j configuration should be provided by a external application. The mapping is defined like:
- trace maps to slf4j.trace
- debug maps to slf4j.debug
- info maps to slf4j.info
- warn maps to slf4j.warn
- error maps to slf4j.error
- fatal maps to slf4j.fatal
-
Field Summary
Fields inherited from class com.restfb.logging.RestFBLogger
CLIENT_LOGGER, HTTP_LOGGER, MAPPER_LOGGER, UTILS_LOGGER, VALUE_FACTORY_LOGGER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidLog a message at the DEBUG level according to the specified format and arguments.voidLog a message at the ERROR level according to the specified format and arguments.voidLog a message at the FATAL level according to the specified format and arguments.voidLog a message at the INFO level according to the specified format and arguments.booleanIs the logger instance enabled for the DEBUG level?booleanIs the logger instance enabled for the INFO level?booleanIs the logger instance enabled for the TRACE level?voidLog a message at the TRACE level according to the specified format and arguments.voidLog a message at the WARN level according to the specified format and arguments.Methods inherited from class com.restfb.logging.RestFBLogger
getLoggerInstance
-
Constructor Details
-
SLF4JLogger
-
-
Method Details
-
trace
Description copied from class:RestFBLoggerLog a message at the TRACE level according to the specified format and arguments.- Specified by:
tracein classRestFBLogger- Parameters:
msg- the log messageargs- optional arguments, the last argument may be an exception
-
debug
Description copied from class:RestFBLoggerLog a message at the DEBUG level according to the specified format and arguments.- Specified by:
debugin classRestFBLogger- Parameters:
msg- the log messageargs- optional arguments, the last argument may be an exception
-
info
Description copied from class:RestFBLoggerLog a message at the INFO level according to the specified format and arguments.- Specified by:
infoin classRestFBLogger- Parameters:
msg- the log messageargs- optional arguments, the last argument may be an exception
-
warn
Description copied from class:RestFBLoggerLog a message at the WARN level according to the specified format and arguments.- Specified by:
warnin classRestFBLogger- Parameters:
msg- the log messageargs- optional arguments, the last argument may be an exception
-
error
Description copied from class:RestFBLoggerLog a message at the ERROR level according to the specified format and arguments.- Specified by:
errorin classRestFBLogger- Parameters:
msg- the log messageargs- optional arguments, the last argument may be an exception
-
fatal
Description copied from class:RestFBLoggerLog a message at the FATAL level according to the specified format and arguments.- Specified by:
fatalin classRestFBLogger- Parameters:
msg- the log messageargs- optional arguments, the last argument may be an exception
-
isDebugEnabled
Description copied from class:RestFBLoggerIs the logger instance enabled for the DEBUG level?- Specified by:
isDebugEnabledin classRestFBLogger- Returns:
trueif it is enabled,falseotherwise
-
isInfoEnabled
Description copied from class:RestFBLoggerIs the logger instance enabled for the INFO level?- Specified by:
isInfoEnabledin classRestFBLogger- Returns:
trueif it is enabled,falseotherwise
-
isTraceEnabled
Description copied from class:RestFBLoggerIs the logger instance enabled for the TRACE level?- Specified by:
isTraceEnabledin classRestFBLogger- Returns:
trueif it is enabled,falseotherwise
-