Package org.slf4j.helpers
Class NOPLogger
java.lang.Object
org.slf4j.helpers.NamedLoggerBase
org.slf4j.helpers.NOPLogger
- All Implemented Interfaces:
Serializable,Logger
A direct NOP (no operation) implementation of
Logger.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NOPLoggerThe unique instance of NOPLogger.private static final longFields inherited from class org.slf4j.helpers.NamedLoggerBase
nameFields inherited from interface org.slf4j.Logger
ROOT_LOGGER_NAME -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedThere is no point in creating multiple instances of NOPLogger. -
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 voidThis method is similar toLogger.debug(String, Object...)method except that the marker data is also taken into consideration.final voidA NOP implementation.final voidThis method is similar toLogger.debug(String, Throwable)method except that the marker data is also taken into consideration.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.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 voidA NOP implementation.final voidA NOP implementation.final voidA NOP implementation.final voidA NOP implementation.final voidA NOP implementation.final booleanAlways returns false.final booleanisDebugEnabled(Marker marker) Always returns false.final booleanA NOP implementation.final booleanisErrorEnabled(Marker marker) Always returns false.final booleanAlways returns false.booleanisInfoEnabled(Marker marker) Always returns false.final booleanAlways returns false.final booleanisTraceEnabled(Marker marker) Always returns false.final booleanAlways returns false.final booleanisWarnEnabled(Marker marker) Always 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.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.NamedLoggerBase
readResolveMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.slf4j.Logger
atDebug, atError, atInfo, atLevel, atTrace, atWarn, isEnabledForLevel, makeLoggingEventBuilder
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
NOP_LOGGER
The unique instance of NOPLogger.
-
-
Constructor Details
-
NOPLogger
protected NOPLogger()There is no point in creating multiple instances of NOPLogger. The present constructor should be "private" but we are leaving it as "protected" for compatibility.
-
-
Method Details
-
getName
Always returns the string value "NOP".- Specified by:
getNamein interfaceLogger- Overrides:
getNamein classNamedLoggerBase- Returns:
- name of this logger instance
-
isTraceEnabled
public final boolean isTraceEnabled()Always returns false.- Specified by:
isTraceEnabledin interfaceLogger- Returns:
- always false
-
trace
A NOP implementation. -
trace
A NOP implementation. -
trace
A NOP implementation. -
trace
A NOP implementation. -
trace
A NOP implementation. -
isDebugEnabled
public final boolean isDebugEnabled()Always returns false.- Specified by:
isDebugEnabledin interfaceLogger- Returns:
- always false
-
debug
A NOP implementation. -
debug
A NOP implementation. -
debug
A NOP implementation. -
debug
A NOP implementation. -
debug
A NOP implementation. -
isInfoEnabled
public final boolean isInfoEnabled()Always returns false.- Specified by:
isInfoEnabledin interfaceLogger- Returns:
- always false
-
info
A NOP implementation. -
info
A NOP implementation. -
info
A NOP implementation. -
info
A NOP implementation. -
info
A NOP implementation. -
isWarnEnabled
public final boolean isWarnEnabled()Always returns false.- Specified by:
isWarnEnabledin interfaceLogger- Returns:
- always false
-
warn
A NOP implementation. -
warn
A NOP implementation. -
warn
A NOP implementation. -
warn
A NOP implementation. -
warn
A NOP implementation. -
isErrorEnabled
public final boolean isErrorEnabled()A NOP implementation.- Specified by:
isErrorEnabledin interfaceLogger- Returns:
- True if this Logger is enabled for the ERROR level, false otherwise.
-
error
A NOP implementation. -
error
A NOP implementation. -
error
A NOP implementation. -
error
A NOP implementation. -
error
A NOP implementation. -
isTraceEnabled
Always returns false.- Specified by:
isTraceEnabledin interfaceLogger- Parameters:
marker- The marker data to take into consideration- Returns:
- always false
-
trace
A NOP implementation. -
trace
A NOP implementation. -
trace
A NOP implementation. -
trace
A NOP implementation. -
trace
A NOP implementation. -
isDebugEnabled
Always returns false.- Specified by:
isDebugEnabledin interfaceLogger- Parameters:
marker- The marker data to take into consideration- Returns:
- always false
-
debug
A NOP implementation. -
debug
A NOP implementation. -
debug
A NOP implementation. -
debug
Description copied from interface:LoggerThis method is similar toLogger.debug(String, Object...)method except that the marker data is also taken into consideration. -
debug
Description copied from interface:LoggerThis method is similar toLogger.debug(String, Throwable)method except that the marker data is also taken into consideration. -
isInfoEnabled
Always returns false.- Specified by:
isInfoEnabledin interfaceLogger- Parameters:
marker- The marker data to take into consideration- Returns:
- always false
-
info
A NOP implementation. -
info
A NOP implementation. -
info
A NOP implementation. -
info
A NOP implementation. -
info
A NOP implementation. -
isWarnEnabled
Always returns false.- Specified by:
isWarnEnabledin interfaceLogger- Parameters:
marker- The marker data to take into consideration- Returns:
- always false
-
warn
A NOP implementation. -
warn
A NOP implementation. -
warn
A NOP implementation. -
warn
A NOP implementation. -
warn
A NOP implementation. -
isErrorEnabled
Always returns false.- Specified by:
isErrorEnabledin interfaceLogger- Parameters:
marker- The marker data to take into consideration- Returns:
- always false
-
error
A NOP implementation. -
error
A NOP implementation. -
error
A NOP implementation. -
error
A NOP implementation. -
error
A NOP implementation.
-