Package es.kukenan.smartfi.logger
Class WalletLoggerAdapter
java.lang.Object
es.kukenan.smartfi.logger.WalletLoggerAdapter
- All Implemented Interfaces:
WalletLogger,org.slf4j.Logger
A logger implementation which logs via a delegate logger. By default, the delegate is a
NOPLogger. However, a different delegate can be set
at anytime. See also the relevant error code documentation.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.LoggerLogger of slf4j delegate.private final com.fasterxml.jackson.databind.ObjectMapperObject mapper.Fields inherited from interface org.slf4j.Logger
ROOT_LOGGER_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidLog a message at the INFO level with audit marker.voidLog a message at the INFO level according to the specified format and argument with audit marker.voidLog a message at the INFO level according to the specified format and arguments with audit marker.voidLog a message at the INFO level according to the specified format and arguments with audit marker.voidLog an exception (throwable) at the INFO level with an accompanying message with audit marker.voidLog a message with the specific Marker at the INFO level.voidThis method is similar toaudit(String, Object...)method except that the marker data is also taken into consideration.voidThis method is similar toaudit(String, Object...)method except that the marker data is also taken into consideration.voidThis method is similar toaudit(String, Object, Object)method except that the marker data is also taken into consideration.voidThis method is similar toaudit(String, Throwable)method except that the marker data is also taken into consideration.voidauditObject(String format, Object object) Log a message at the INFO level according to the specified format and argument with audit marker.voidLog a message at the DEBUG level.voidLog a message at the DEBUG level according to the specified format and argument.voidLog a message at the DEBUG level according to the specified format and arguments.voidLog a message at the DEBUG level according to the specified format and arguments.voidLog an exception (throwable) at the DEBUG level with an accompanying message.voidLog a message with the specific Marker at the DEBUG level.voidThis method is similar todebug(String, Object)method except that the marker data is also taken into consideration.voidThis method is similar todebug(String, Object...)method except that the marker data is also taken into consideration.voidThis method is similar todebug(String, Object, Object)method except that the marker data is also taken into consideration.voidThis method is similar todebug(String, Throwable)method except that the marker data is also taken into consideration.voidLog a message at the ERROR level.voidLog a message at the ERROR level according to the specified format and argument.voidLog a message at the ERROR level according to the specified format and arguments.voidLog a message at the ERROR level according to the specified format and arguments.voidLog an exception (throwable) at the ERROR level with an accompanying message.voidLog a message with the specific Marker at the ERROR level.voidThis method is similar toerror(String, Object)method except that the marker data is also taken into consideration.voidThis method is similar toerror(String, Object...)method except that the marker data is also taken into consideration.voidThis method is similar toerror(String, Object, Object)method except that the marker data is also taken into consideration.voidThis method is similar toerror(String, Throwable)method except that the marker data is also taken into consideration.getName()Return for return name.voidLog a message at the INFO level.voidLog a message at the INFO level according to the specified format and argument.voidLog a message at the INFO level according to the specified format and arguments.voidLog a message at the INFO level according to the specified format and arguments.voidLog an exception (throwable) at the INFO level with an accompanying message.voidLog a message with the specific Marker at the INFO level.voidThis method is similar toinfo(String, Object)method except that the marker data is also taken into consideration.voidThis method is similar toinfo(String, Object...)method except that the marker data is also taken into consideration.voidThis method is similar toinfo(String, Object, Object)method except that the marker data is also taken into consideration.voidThis method is similar toinfo(String, Throwable)method except that the marker data is also taken into consideration.booleanIs the logger instance enabled for the INFO level?.booleanisAuditEnabled(org.slf4j.Marker marker) Is the logger instance enabled for the INFO level?.booleanIs the logger instance enabled for the DEBUG level?.booleanisDebugEnabled(org.slf4j.Marker marker) Similar toisDebugEnabled()method except that the marker data is also taken into account.booleanIs the logger instance enabled for the ERROR level?.booleanisErrorEnabled(org.slf4j.Marker marker) Similar toisErrorEnabled()method except that the marker data is also taken into consideration.booleanIs the logger instance enabled for the INFO level?.booleanisInfoEnabled(org.slf4j.Marker marker) Similar toisInfoEnabled()method except that the marker data is also taken into consideration.booleanIs the logger instance enabled for the TRACE level?.booleanisTraceEnabled(org.slf4j.Marker marker) Similar toisTraceEnabled()method except that the marker data is also taken into account.booleanIs the logger instance enabled for the WARN level?.booleanisWarnEnabled(org.slf4j.Marker marker) Similar toisWarnEnabled()method except that the marker data is also taken into consideration.voidLog a message at the TRACE level.voidLog a message at the TRACE level according to the specified format and argument.voidLog a message at the TRACE level according to the specified format and arguments.voidLog a message at the TRACE level according to the specified format and arguments.voidLog an exception (throwable) at the TRACE level with an accompanying message.voidLog a message with the specific Marker at the TRACE level.voidThis method is similar totrace(String, Object)method except that the marker data is also taken into consideration.voidThis method is similar totrace(String, Object...)method except that the marker data is also taken into consideration.voidThis method is similar totrace(String, Object, Object)method except that the marker data is also taken into consideration.voidThis method is similar totrace(String, Throwable)method except that the marker data is also taken into consideration.voidLog a message at the WARN level.voidLog a message at the WARN level according to the specified format and argument.voidLog a message at the WARN level according to the specified format and arguments.voidLog a message at the WARN level according to the specified format and arguments.voidLog an exception (throwable) at the WARN level with an accompanying message.voidLog a message with the specific Marker at the WARN level.voidThis method is similar towarn(String, Object)method except that the marker data is also taken into consideration.voidThis method is similar towarn(String, Object...)method except that the marker data is also taken into consideration.voidThis method is similar towarn(String, Object, Object)method except that the marker data is also taken into consideration.voidThis method is similar towarn(String, Throwable)method except that the marker data is also taken into consideration.
-
Field Details
-
innerLogger
private final org.slf4j.Logger innerLoggerLogger of slf4j delegate. -
mapper
private final com.fasterxml.jackson.databind.ObjectMapper mapperObject mapper.
-
-
Constructor Details
-
WalletLoggerAdapter
public WalletLoggerAdapter(org.slf4j.Logger logger) Constructor with logger param.- Parameters:
logger- Logger of slf4j
-
-
Method Details
-
getName
Return for return name.- Specified by:
getNamein interfaceorg.slf4j.Logger- Returns:
- String with name.
-
isTraceEnabled
public boolean isTraceEnabled()Is the logger instance enabled for the TRACE level?.- Specified by:
isTraceEnabledin interfaceorg.slf4j.Logger- Returns:
- True if this Logger is enabled for the TRACE level, false otherwise.
-
isTraceEnabled
public boolean isTraceEnabled(org.slf4j.Marker marker) Similar toisTraceEnabled()method except that the marker data is also taken into account.- Specified by:
isTraceEnabledin interfaceorg.slf4j.Logger- Parameters:
marker- The marker data to take into consideration.- Returns:
- True if this Logger is enabled for the TRACE level, false otherwise.
-
trace
Log a message at the TRACE level.- Specified by:
tracein interfaceorg.slf4j.Logger- Parameters:
msg- the message string to be logged.
-
trace
Log a message at the TRACE level according to the specified format and argument.- Specified by:
tracein interfaceorg.slf4j.Logger- Parameters:
format- the format string.argument- the argument.
-
trace
Log a message at the TRACE level according to the specified format and arguments.- Specified by:
tracein interfaceorg.slf4j.Logger- Parameters:
format- the format string.argument1- the first argument.argument2- the second argument.
-
trace
Log a message at the TRACE level according to the specified format and arguments.- Specified by:
tracein interfaceorg.slf4j.Logger- Parameters:
format- the format string.arguments- a list of 3 or more arguments.
-
trace
Log an exception (throwable) at the TRACE level with an accompanying message.- Specified by:
tracein interfaceorg.slf4j.Logger- Parameters:
msg- the message accompanying the exception.throwable- the exception (throwable) to log.
-
trace
Log a message with the specific Marker at the TRACE level.- Specified by:
tracein interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statement.msg- the message string to be logged.
-
trace
This method is similar totrace(String, Object)method except that the marker data is also taken into consideration.- Specified by:
tracein interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statement.format- the format string.argument- the argument.
-
trace
This method is similar totrace(String, Object, Object)method except that the marker data is also taken into consideration.- Specified by:
tracein interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statement.format- the format string.argument1- the first argument.argument2- the second argument.
-
trace
This method is similar totrace(String, Object...)method except that the marker data is also taken into consideration.- Specified by:
tracein interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statement.format- the format string.arguments- an array of arguments.
-
trace
This method is similar totrace(String, Throwable)method except that the marker data is also taken into consideration.- Specified by:
tracein interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statement.msg- the message accompanying the exception.throwable- the exception (throwable) to log.
-
isDebugEnabled
public boolean isDebugEnabled()Is the logger instance enabled for the DEBUG level?.- Specified by:
isDebugEnabledin interfaceorg.slf4j.Logger- Returns:
- True if this Logger is enabled for the DEBUG level, false otherwise.
-
isDebugEnabled
public boolean isDebugEnabled(org.slf4j.Marker marker) Similar toisDebugEnabled()method except that the marker data is also taken into account.- Specified by:
isDebugEnabledin interfaceorg.slf4j.Logger- Parameters:
marker- The marker data to take into consideration.- Returns:
- True if this Logger is enabled for the DEBUG level, false otherwise.
-
debug
Log a message at the DEBUG level.- Specified by:
debugin interfaceorg.slf4j.Logger- Parameters:
msg- the message string to be logged.
-
debug
Log a message at the DEBUG level according to the specified format and argument.- Specified by:
debugin interfaceorg.slf4j.Logger- Parameters:
format- the format string.argument- the argument.
-
debug
Log a message at the DEBUG level according to the specified format and arguments.- Specified by:
debugin interfaceorg.slf4j.Logger- Parameters:
format- the format string.argument1- the first argument.argument2- the second argument.
-
debug
Log a message at the DEBUG level according to the specified format and arguments.- Specified by:
debugin interfaceorg.slf4j.Logger- Parameters:
format- the format string.arguments- a list of 3 or more arguments.
-
debug
Log an exception (throwable) at the DEBUG level with an accompanying message.- Specified by:
debugin interfaceorg.slf4j.Logger- Parameters:
msg- the message accompanying the exception.throwable- the exception (throwable) to log.
-
debug
Log a message with the specific Marker at the DEBUG level.- Specified by:
debugin interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statement.msg- the message string to be logged.
-
debug
This method is similar todebug(String, Object)method except that the marker data is also taken into consideration.- Specified by:
debugin interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statement.format- the format string.argument- the argument.
-
debug
This method is similar todebug(String, Object, Object)method except that the marker data is also taken into consideration.- Specified by:
debugin interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statement.format- the format string.argument1- the first argument.argument2- the second argument.
-
debug
This method is similar todebug(String, Object...)method except that the marker data is also taken into consideration.- Specified by:
debugin interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statement.format- the format string.arguments- a list of 3 or more arguments.
-
debug
This method is similar todebug(String, Throwable)method except that the marker data is also taken into consideration.- Specified by:
debugin interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statement.msg- the message accompanying the exception.t- the exception (throwable) to log.
-
isInfoEnabled
public boolean isInfoEnabled()Is the logger instance enabled for the INFO level?.- Specified by:
isInfoEnabledin interfaceorg.slf4j.Logger- Returns:
- True if this Logger is enabled for the INFO level, false otherwise.
-
isInfoEnabled
public boolean isInfoEnabled(org.slf4j.Marker marker) Similar toisInfoEnabled()method except that the marker data is also taken into consideration.- Specified by:
isInfoEnabledin interfaceorg.slf4j.Logger- Parameters:
marker- The marker data to take into consideration.- Returns:
- true if this logger is warn enabled, false otherwise.
-
info
Log a message at the INFO level.- Specified by:
infoin interfaceorg.slf4j.Logger- Parameters:
msg- the message string to be logged.
-
info
Log a message at the INFO level according to the specified format and argument.- Specified by:
infoin interfaceorg.slf4j.Logger- Parameters:
format- the format string.argument- the argument.
-
info
Log a message at the INFO level according to the specified format and arguments.- Specified by:
infoin interfaceorg.slf4j.Logger- Parameters:
format- the format string.argument1- the first argument.argument2- the second argument.
-
info
Log a message at the INFO level according to the specified format and arguments.- Specified by:
infoin interfaceorg.slf4j.Logger- Parameters:
format- the format string.arguments- a list of 3 or more arguments.
-
info
Log an exception (throwable) at the INFO level with an accompanying message.- Specified by:
infoin interfaceorg.slf4j.Logger- Parameters:
msg- the message accompanying the exception.throwable- the exception (throwable) to log.
-
info
Log a message with the specific Marker at the INFO level.- Specified by:
infoin interfaceorg.slf4j.Logger- Parameters:
marker- The marker specific to this log statement.msg- the message string to be logged.
-
info
This method is similar toinfo(String, Object)method except that the marker data is also taken into consideration.- Specified by:
infoin interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statement.format- the format string.argument- the argument.
-
info
This method is similar toinfo(String, Object, Object)method except that the marker data is also taken into consideration.- Specified by:
infoin interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statement.format- the format string.argument1- the first argument.argument2- the second argument.
-
info
This method is similar toinfo(String, Object...)method except that the marker data is also taken into consideration.- Specified by:
infoin interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statement.format- the format string.arguments- a list of 3 or more arguments.
-
info
This method is similar toinfo(String, Throwable)method except that the marker data is also taken into consideration.- Specified by:
infoin interfaceorg.slf4j.Logger- Parameters:
marker- the marker data for this log statement.msg- the message accompanying the exception.throwable- the exception (throwable) to log.
-
isWarnEnabled
public boolean isWarnEnabled()Is the logger instance enabled for the WARN level?.- Specified by:
isWarnEnabledin interfaceorg.slf4j.Logger- Returns:
- True if this Logger is enabled for the WARN level, false otherwise.
-
isWarnEnabled
public boolean isWarnEnabled(org.slf4j.Marker marker) Similar toisWarnEnabled()method except that the marker data is also taken into consideration.- Specified by:
isWarnEnabledin interfaceorg.slf4j.Logger- Parameters:
marker- The marker data to take into consideration.- Returns:
- True if this Logger is enabled for the WARN level, false otherwise.
-
warn
Log a message at the WARN level.- Specified by:
warnin interfaceorg.slf4j.Logger- Parameters:
msg- the message string to be logged.
-
warn
Log a message at the WARN level according to the specified format and argument.- Specified by:
warnin interfaceorg.slf4j.Logger- Parameters:
format- the format string.argument- the argument.
-
warn
Log a message at the WARN level according to the specified format and arguments.- Specified by:
warnin interfaceorg.slf4j.Logger- Parameters:
format- the format string.argument1- the first argument.argument2- the second argument.
-
warn
Log a message at the WARN level according to the specified format and arguments.- Specified by:
warnin interfaceorg.slf4j.Logger- Parameters:
format- the format string.arguments- a list of 3 or more arguments.
-
warn
Log an exception (throwable) at the WARN level with an accompanying message.- Specified by:
warnin interfaceorg.slf4j.Logger- Parameters:
msg- the message accompanying the exception.throwable- the exception (throwable) to log.
-
warn
Log a message with the specific Marker at the WARN level.- Specified by:
warnin interfaceorg.slf4j.Logger- Parameters:
marker- The marker specific to this log statement.msg- the message string to be logged.
-
warn
This method is similar towarn(String, Object)method except that the marker data is also taken into consideration.- Specified by:
warnin interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statement.format- the format string.argument- the argument.
-
warn
This method is similar towarn(String, Object, Object)method except that the marker data is also taken into consideration.- Specified by:
warnin interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statement.format- the format string.argument1- the first argument.argument2- the second argument.
-
warn
This method is similar towarn(String, Object...)method except that the marker data is also taken into consideration.- Specified by:
warnin interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statement.format- the format string.arguments- a list of 3 or more arguments.
-
warn
This method is similar towarn(String, Throwable)method except that the marker data is also taken into consideration.- Specified by:
warnin interfaceorg.slf4j.Logger- Parameters:
marker- the marker data for this log statement.msg- the message accompanying the exception.throwable- the exception (throwable) to log.
-
isErrorEnabled
public boolean isErrorEnabled()Is the logger instance enabled for the ERROR level?.- Specified by:
isErrorEnabledin interfaceorg.slf4j.Logger- Returns:
- True if this Logger is enabled for the ERROR level, false otherwise.
-
isErrorEnabled
public boolean isErrorEnabled(org.slf4j.Marker marker) Similar toisErrorEnabled()method except that the marker data is also taken into consideration.- Specified by:
isErrorEnabledin interfaceorg.slf4j.Logger- Parameters:
marker- The marker data to take into consideration- Returns:
- True if this Logger is enabled for the ERROR level, false otherwise.
-
error
Log a message at the ERROR level.- Specified by:
errorin interfaceorg.slf4j.Logger- Parameters:
msg- the message string to be logged.
-
error
Log a message at the ERROR level according to the specified format and argument.- Specified by:
errorin interfaceorg.slf4j.Logger- Parameters:
format- the format string.argument- the argument.
-
error
Log a message at the ERROR level according to the specified format and arguments.- Specified by:
errorin interfaceorg.slf4j.Logger- Parameters:
format- the format string.argument1- the first argument.argument2- the second argument.
-
error
Log a message at the ERROR level according to the specified format and arguments.- Specified by:
errorin interfaceorg.slf4j.Logger- Parameters:
format- the format string.arguments- a list of 3 or more arguments.
-
error
Log an exception (throwable) at the ERROR level with an accompanying message.- Specified by:
errorin interfaceorg.slf4j.Logger- Parameters:
msg- the message accompanying the exception.throwable- the exception (throwable) to log.
-
error
Log a message with the specific Marker at the ERROR level.- Specified by:
errorin interfaceorg.slf4j.Logger- Parameters:
marker- The marker specific to this log statement.msg- the message string to be logged.
-
error
This method is similar toerror(String, Object)method except that the marker data is also taken into consideration.- Specified by:
errorin interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statement.format- the format string.argument- the argument.
-
error
This method is similar toerror(String, Object, Object)method except that the marker data is also taken into consideration.- Specified by:
errorin interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statementformat- the format string.argument1- the first argument.argument2- the second argument.
-
error
This method is similar toerror(String, Object...)method except that the marker data is also taken into consideration.- Specified by:
errorin interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statement.format- the format string.arguments- a list of 3 or more arguments.
-
error
This method is similar toerror(String, Throwable)method except that the marker data is also taken into consideration.- Specified by:
errorin interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statement.msg- the message accompanying the exception.throwable- the exception (throwable) to log.
-
isAuditEnabled
public boolean isAuditEnabled()Is the logger instance enabled for the INFO level?.- Specified by:
isAuditEnabledin interfaceWalletLogger- Returns:
- True if this Logger is enabled for the INFO level, false otherwise.
-
isAuditEnabled
public boolean isAuditEnabled(org.slf4j.Marker marker) Is the logger instance enabled for the INFO level?.- Specified by:
isAuditEnabledin interfaceWalletLogger- Parameters:
marker- The marker data to take into consideration.- Returns:
- True if this Logger is enabled for the INFO level, false otherwise.
-
audit
Log a message at the INFO level with audit marker.- Specified by:
auditin interfaceWalletLogger- Parameters:
msg- the message string to be logged.
-
audit
Log a message at the INFO level according to the specified format and argument with audit marker.- Specified by:
auditin interfaceWalletLogger- Parameters:
format- the format string.argument- the argument.
-
audit
Log a message at the INFO level according to the specified format and arguments with audit marker.- Specified by:
auditin interfaceWalletLogger- Parameters:
format- the format string.argument1- the first argument.argument2- the second argument.
-
audit
Log a message at the INFO level according to the specified format and arguments with audit marker.- Specified by:
auditin interfaceWalletLogger- Parameters:
format- the format string.arguments- a list of 3 or more arguments.
-
audit
Log an exception (throwable) at the INFO level with an accompanying message with audit marker.- Specified by:
auditin interfaceWalletLogger- Parameters:
msg- the message accompanying the exception.throwable- the exception (throwable) to log.
-
audit
Log a message with the specific Marker at the INFO level.- Specified by:
auditin interfaceWalletLogger- Parameters:
marker- The marker specific to this log statement.msg- the message string to be logged.
-
audit
This method is similar toaudit(String, Object...)method except that the marker data is also taken into consideration.- Specified by:
auditin interfaceWalletLogger- Parameters:
marker- the marker data specific to this log statement.format- the format string.argument- a list of 3 or more arguments.
-
audit
This method is similar toaudit(String, Object, Object)method except that the marker data is also taken into consideration.- Specified by:
auditin interfaceWalletLogger- Parameters:
marker- the marker data specific to this log statementformat- the format string.argument1- the first argument.argument2- the second argument.
-
audit
This method is similar toaudit(String, Object...)method except that the marker data is also taken into consideration.- Specified by:
auditin interfaceWalletLogger- Parameters:
marker- the marker data specific to this log statement.format- the format string.arguments- a list of 3 or more arguments.
-
audit
This method is similar toaudit(String, Throwable)method except that the marker data is also taken into consideration.- Specified by:
auditin interfaceWalletLogger- Parameters:
marker- the marker data specific to this log statement.msg- the message accompanying the exception.throwable- the exception (throwable) to log.
-
auditObject
Log a message at the INFO level according to the specified format and argument with audit marker.- Specified by:
auditObjectin interfaceWalletLogger- Parameters:
format- the format string.object- object to audit. This object can be a JsonNode, a String or another object type, but if is a String then must be a String with a valid json format.
-