Package org.slf4j.helpers
Class NOPLogger
java.lang.Object
org.slf4j.helpers.NOPLogger
- All Implemented Interfaces:
- Serializable,- Logger
A direct NOP (no operation) implementation of 
Logger.- Author:
- Ceki Gülcü
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected Stringstatic final NOPLoggerThe unique instance of NOPLogger.Fields inherited from interface org.slf4j.LoggerROOT_LOGGER_NAME
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedThere is no point in creating multiple instances of NOPLogger.
- 
Method SummaryModifier 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.protected ObjectReplace this instance with a homonymous (same name) logger returned by LoggerFactory.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 java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.slf4j.LoggeratDebug, atError, atInfo, atLevel, atTrace, atWarn, isEnabledForLevel, makeLoggingEventBuilder
- 
Field Details- 
NOP_LOGGERThe unique instance of NOPLogger.
- 
name
 
- 
- 
Constructor Details- 
NOPLoggerprotected 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- 
getNameAlways returns the string value "NOP".
- 
isTraceEnabledAlways returns false.- Specified by:
- isTraceEnabledin interface- Logger
- Returns:
- always false
 
- 
traceA NOP implementation.
- 
traceA NOP implementation.
- 
traceA NOP implementation.
- 
traceA NOP implementation.
- 
traceA NOP implementation.
- 
isDebugEnabledAlways returns false.- Specified by:
- isDebugEnabledin interface- Logger
- Returns:
- always false
 
- 
debugA NOP implementation.
- 
debugA NOP implementation.
- 
debugA NOP implementation.
- 
debugA NOP implementation.
- 
debugA NOP implementation.
- 
isInfoEnabledAlways returns false.- Specified by:
- isInfoEnabledin interface- Logger
- Returns:
- always false
 
- 
infoA NOP implementation.
- 
infoA NOP implementation.
- 
infoA NOP implementation.
- 
infoA NOP implementation.
- 
infoA NOP implementation.
- 
isWarnEnabledAlways returns false.- Specified by:
- isWarnEnabledin interface- Logger
- Returns:
- always false
 
- 
warnA NOP implementation.
- 
warnA NOP implementation.
- 
warnA NOP implementation.
- 
warnA NOP implementation.
- 
warnA NOP implementation.
- 
isErrorEnabledA NOP implementation.- Specified by:
- isErrorEnabledin interface- Logger
- Returns:
- True if this Logger is enabled for the ERROR level, false otherwise.
 
- 
errorA NOP implementation.
- 
errorA NOP implementation.
- 
errorA NOP implementation.
- 
errorA NOP implementation.
- 
errorA NOP implementation.
- 
isTraceEnabledAlways returns false.- Specified by:
- isTraceEnabledin interface- Logger
- Parameters:
- marker- The marker data to take into consideration
- Returns:
- always false
 
- 
traceA NOP implementation.
- 
traceA NOP implementation.
- 
traceA NOP implementation.
- 
traceA NOP implementation.
- 
traceA NOP implementation.
- 
isDebugEnabledAlways returns false.- Specified by:
- isDebugEnabledin interface- Logger
- Parameters:
- marker- The marker data to take into consideration
- Returns:
- always false
 
- 
debugA NOP implementation.
- 
debugA NOP implementation.
- 
debugA NOP implementation.
- 
debugDescription copied from interface:LoggerThis method is similar toLogger.debug(String, Object...)method except that the marker data is also taken into consideration.
- 
debugDescription copied from interface:LoggerThis method is similar toLogger.debug(String, Throwable)method except that the marker data is also taken into consideration.
- 
isInfoEnabledAlways returns false.- Specified by:
- isInfoEnabledin interface- Logger
- Parameters:
- marker- The marker data to take into consideration
- Returns:
- always false
 
- 
infoA NOP implementation.
- 
infoA NOP implementation.
- 
infoA NOP implementation.
- 
infoA NOP implementation.
- 
infoA NOP implementation.
- 
isWarnEnabledAlways returns false.- Specified by:
- isWarnEnabledin interface- Logger
- Parameters:
- marker- The marker data to take into consideration
- Returns:
- always false
 
- 
warnA NOP implementation.
- 
warnA NOP implementation.
- 
warnA NOP implementation.
- 
warnA NOP implementation.
- 
warnA NOP implementation.
- 
isErrorEnabledAlways returns false.- Specified by:
- isErrorEnabledin interface- Logger
- Parameters:
- marker- The marker data to take into consideration
- Returns:
- always false
 
- 
errorA NOP implementation.
- 
errorA NOP implementation.
- 
errorA NOP implementation.
- 
errorA NOP implementation.
- 
errorA NOP implementation.
- 
readResolveReplace this instance with a homonymous (same name) logger returned by LoggerFactory. Note that this method is only called during deserialization.This approach will work well if the desired ILoggerFactory is the one referenced by LoggerFactory. However, if the user manages its logger hierarchy through a different (non-static) mechanism, e.g. dependency injection, then this approach would be mostly counterproductive. - Returns:
- logger with same name as returned by LoggerFactory
- Throws:
- ObjectStreamException
 
 
-