Package org.slf4j.helpers
Class NOPLogger
java.lang.Object
org.slf4j.helpers.MarkerIgnoringBase
org.slf4j.helpers.NOPLogger
- All Implemented Interfaces:
Serializable,Logger
A direct NOP (no operation) implementation of
Logger.- See Also:
-
Field Summary
FieldsFields inherited from interface org.slf4j.Logger
ROOT_LOGGER_NAME -
Method Summary
Modifier and TypeMethodDescriptionfinal voidA NOP implementation.final voidA NOP implementation.final voidA NOP implementation.final voidA NOP implementation.final voidA NOP implementation.final voidA NOP implementation.final voidA NOP implementation.final voidA NOP implementation.final voidA NOP implementation.final voidA NOP implementation.getName()Always returns the string value "NOP".final voidA NOP implementation.final voidA NOP implementation.final voidA NOP implementation.final voidA NOP implementation.final voidA NOP implementation.final booleanAlways returns false.final booleanA NOP implementation.final booleanAlways returns false.final booleanAlways returns false.final booleanAlways returns false.final voidA NOP implementation.final voidA NOP implementation.final voidA NOP implementation.final voidA NOP implementation.final voidA NOP implementation.final voidA NOP implementation.final voidA NOP implementation.final voidA NOP implementation.final voidA NOP implementation.final voidA NOP implementation.Methods inherited from class org.slf4j.helpers.MarkerIgnoringBase
debug, debug, debug, debug, debug, error, error, error, error, error, info, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, toString, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn
-
Field Details
-
NOP_LOGGER
The unique instance of NOPLogger.
-
-
Method Details
-
getName
Always returns the string value "NOP". -
isTraceEnabled
public final boolean isTraceEnabled()Always returns false.- Returns:
- always false
-
trace
A NOP implementation.- Parameters:
msg- the message string to be logged
-
trace
A NOP implementation.- Parameters:
format- the format stringarg- the argument
-
trace
A NOP implementation.- Parameters:
format- the format stringarg1- the first argumentarg2- the second argument
-
trace
A NOP implementation.- Parameters:
format- the format stringargArray- a list of 3 or more arguments
-
trace
A NOP implementation.- Parameters:
msg- the message accompanying the exceptiont- the exception (throwable) to log
-
isDebugEnabled
public final boolean isDebugEnabled()Always returns false.- Returns:
- always false
-
debug
A NOP implementation.- Parameters:
msg- the message string to be logged
-
debug
A NOP implementation.- Parameters:
format- the format stringarg- the argument
-
debug
A NOP implementation.- Parameters:
format- the format stringarg1- the first argumentarg2- the second argument
-
debug
A NOP implementation.- Parameters:
format- the format stringargArray- a list of 3 or more arguments
-
debug
A NOP implementation.- Parameters:
msg- the message accompanying the exceptiont- the exception (throwable) to log
-
isInfoEnabled
public final boolean isInfoEnabled()Always returns false.- Returns:
- always false
-
info
A NOP implementation.- Parameters:
msg- the message string to be logged
-
info
A NOP implementation.- Parameters:
format- the format stringarg1- the argument
-
info
A NOP implementation.- Parameters:
format- the format stringarg1- the first argumentarg2- the second argument
-
info
A NOP implementation.- Parameters:
format- the format stringargArray- a list of 3 or more arguments
-
info
A NOP implementation.- Parameters:
msg- the message accompanying the exceptiont- the exception (throwable) to log
-
isWarnEnabled
public final boolean isWarnEnabled()Always returns false.- Returns:
- always false
-
warn
A NOP implementation.- Parameters:
msg- the message string to be logged
-
warn
A NOP implementation.- Parameters:
format- the format stringarg1- the argument
-
warn
A NOP implementation.- Parameters:
format- the format stringarg1- the first argumentarg2- the second argument
-
warn
A NOP implementation.- Parameters:
format- the format stringargArray- a list of 3 or more arguments
-
warn
A NOP implementation.- Parameters:
msg- the message accompanying the exceptiont- the exception (throwable) to log
-
isErrorEnabled
public final boolean isErrorEnabled()A NOP implementation.- Returns:
- True if this Logger is enabled for the ERROR level, false otherwise.
-
error
A NOP implementation.- Parameters:
msg- the message string to be logged
-
error
A NOP implementation.- Parameters:
format- the format stringarg1- the argument
-
error
A NOP implementation.- Parameters:
format- the format stringarg1- the first argumentarg2- the second argument
-
error
A NOP implementation.- Parameters:
format- the format stringargArray- a list of 3 or more arguments
-
error
A NOP implementation.- Parameters:
msg- the message accompanying the exceptiont- the exception (throwable) to log
-