Class Slf4jSanitizedAdaptorLogger
- All Implemented Interfaces:
org.slf4j.Logger
-
Field Summary
Fields inherited from interface org.slf4j.Logger
ROOT_LOGGER_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidLog 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 the name of thisLoggerinstance.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 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.
-
Constructor Details
-
Slf4jSanitizedAdaptorLogger
-
-
Method Details
-
getName
Return the name of thisLoggerinstance.- Specified by:
getNamein interfaceorg.slf4j.Logger- Returns:
- name of this logger instance
-
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.
- Since:
- 1.4
-
trace
Log a message at the TRACE level.- Specified by:
tracein interfaceorg.slf4j.Logger- Parameters:
msg- the message string to be logged- Since:
- 1.4
-
trace
Log a message at the TRACE level according to the specified format and argument.This form avoids superfluous object creation when the logger is disabled for the TRACE level.
- Specified by:
tracein interfaceorg.slf4j.Logger- Parameters:
format- the format stringarg- the argument- Since:
- 1.4
-
trace
Log a message at the TRACE level according to the specified format and arguments.This form avoids superfluous object creation when the logger is disabled for the TRACE level.
- Specified by:
tracein interfaceorg.slf4j.Logger- Parameters:
format- the format stringarg1- the first argumentarg2- the second argument- Since:
- 1.4
-
trace
Log a message at the TRACE level according to the specified format and arguments.This form avoids superfluous string concatenation when the logger is disabled for the TRACE level. However, this variant incurs the hidden (and relatively small) cost of creating an
Object[]before invoking the method, even if this logger is disabled for TRACE. The variants takingoneandtwoarguments exist solely in order to avoid this hidden cost.- Specified by:
tracein interfaceorg.slf4j.Logger- Parameters:
format- the format stringarguments- a list of 3 or more arguments- Since:
- 1.4
-
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 exceptiont- the exception (throwable) to log- Since:
- 1.4
-
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.
- Since:
- 1.4
-
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 statementmsg- the message string to be logged- Since:
- 1.4
-
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 statementformat- the format stringarg- the argument- Since:
- 1.4
-
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 statementformat- the format stringarg1- the first argumentarg2- the second argument- Since:
- 1.4
-
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 statementformat- the format stringargArray- an array of arguments- Since:
- 1.4
-
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 statementmsg- the message accompanying the exceptiont- the exception (throwable) to log- Since:
- 1.4
-
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.
-
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.This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
- Specified by:
debugin interfaceorg.slf4j.Logger- Parameters:
format- the format stringarg- the argument
-
debug
Log a message at the DEBUG level according to the specified format and arguments.This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
- Specified by:
debugin interfaceorg.slf4j.Logger- Parameters:
format- the format stringarg1- the first argumentarg2- the second argument
-
debug
Log a message at the DEBUG level according to the specified format and arguments.This form avoids superfluous string concatenation when the logger is disabled for the DEBUG level. However, this variant incurs the hidden (and relatively small) cost of creating an
Object[]before invoking the method, even if this logger is disabled for DEBUG. The variants takingoneandtwoarguments exist solely in order to avoid this hidden cost.- Specified by:
debugin interfaceorg.slf4j.Logger- Parameters:
format- the format stringarguments- 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 exceptiont- the exception (throwable) to log
-
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 with the specific Marker at the DEBUG level.- Specified by:
debugin interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statementmsg- 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 statementformat- the format stringarg- 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 statementformat- the format stringarg1- the first argumentarg2- 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 statementformat- the format stringarguments- 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 statementmsg- the message accompanying the exceptiont- 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.
-
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.This form avoids superfluous object creation when the logger is disabled for the INFO level.
- Specified by:
infoin interfaceorg.slf4j.Logger- Parameters:
format- the format stringarg- the argument
-
info
Log a message at the INFO level according to the specified format and arguments.This form avoids superfluous object creation when the logger is disabled for the INFO level.
- Specified by:
infoin interfaceorg.slf4j.Logger- Parameters:
format- the format stringarg1- the first argumentarg2- the second argument
-
info
Log a message at the INFO level according to the specified format and arguments.This form avoids superfluous string concatenation when the logger is disabled for the INFO level. However, this variant incurs the hidden (and relatively small) cost of creating an
Object[]before invoking the method, even if this logger is disabled for INFO. The variants takingoneandtwoarguments exist solely in order to avoid this hidden cost.- Specified by:
infoin interfaceorg.slf4j.Logger- Parameters:
format- the format stringarguments- 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 exceptiont- the exception (throwable) to log
-
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 with the specific Marker at the INFO level.- Specified by:
infoin interfaceorg.slf4j.Logger- Parameters:
marker- The marker specific to this log statementmsg- 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 statementformat- the format stringarg- 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 statementformat- the format stringarg1- the first argumentarg2- 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 statementformat- the format stringarguments- 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 statementmsg- the message accompanying the exceptiont- 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.
-
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.This form avoids superfluous object creation when the logger is disabled for the WARN level.
- Specified by:
warnin interfaceorg.slf4j.Logger- Parameters:
format- the format stringarg- the argument
-
warn
Log a message at the WARN level according to the specified format and arguments.This form avoids superfluous string concatenation when the logger is disabled for the WARN level. However, this variant incurs the hidden (and relatively small) cost of creating an
Object[]before invoking the method, even if this logger is disabled for WARN. The variants takingoneandtwoarguments exist solely in order to avoid this hidden cost.- Specified by:
warnin interfaceorg.slf4j.Logger- Parameters:
format- the format stringarguments- a list of 3 or more arguments
-
warn
Log a message at the WARN level according to the specified format and arguments.This form avoids superfluous object creation when the logger is disabled for the WARN level.
- Specified by:
warnin interfaceorg.slf4j.Logger- Parameters:
format- the format stringarg1- the first argumentarg2- the second argument
-
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 exceptiont- the exception (throwable) to log
-
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 with the specific Marker at the WARN level.- Specified by:
warnin interfaceorg.slf4j.Logger- Parameters:
marker- The marker specific to this log statementmsg- 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 statementformat- the format stringarg- 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 statementformat- the format stringarg1- the first argumentarg2- 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 statementformat- the format stringarguments- 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 statementmsg- the message accompanying the exceptiont- 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.
-
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.This form avoids superfluous object creation when the logger is disabled for the ERROR level.
- Specified by:
errorin interfaceorg.slf4j.Logger- Parameters:
format- the format stringarg- the argument
-
error
Log a message at the ERROR level according to the specified format and arguments.This form avoids superfluous object creation when the logger is disabled for the ERROR level.
- Specified by:
errorin interfaceorg.slf4j.Logger- Parameters:
format- the format stringarg1- the first argumentarg2- the second argument
-
error
Log a message at the ERROR level according to the specified format and arguments.This form avoids superfluous string concatenation when the logger is disabled for the ERROR level. However, this variant incurs the hidden (and relatively small) cost of creating an
Object[]before invoking the method, even if this logger is disabled for ERROR. The variants takingoneandtwoarguments exist solely in order to avoid this hidden cost.- Specified by:
errorin interfaceorg.slf4j.Logger- Parameters:
format- the format stringarguments- 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 exceptiont- the exception (throwable) to log
-
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 with the specific Marker at the ERROR level.- Specified by:
errorin interfaceorg.slf4j.Logger- Parameters:
marker- The marker specific to this log statementmsg- 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 statementformat- the format stringarg- 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 stringarg1- the first argumentarg2- 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 statementformat- the format stringarguments- 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 statementmsg- the message accompanying the exceptiont- the exception (throwable) to log
-