Package org.slf4j.helpers
Class MarkerIgnoringBase
java.lang.Object
org.slf4j.helpers.MarkerIgnoringBase
- All Implemented Interfaces:
Serializable,Logger
- Direct Known Subclasses:
NOPLogger
This class serves as base for adapters or native implementations of logging systems
lacking Marker support. In this implementation, methods taking marker data
simply invoke the corresponding method without the Marker argument, discarding
any marker data passed as argument.
- Author:
- Ceki Gulcu
- See Also:
-
Field Summary
FieldsFields inherited from interface org.slf4j.Logger
ROOT_LOGGER_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidLog a message with the specific Marker at the DEBUG level.voidThis method is similar toLogger.debug(String, Object)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.debug(String, Object...)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.debug(String, Object, Object)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.debug(String, Throwable)method except that the marker data is also taken into consideration.voidLog a message with the specific Marker at the ERROR level.voidThis method is similar toLogger.error(String, Object)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.error(String, Object...)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.error(String, Object, Object)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.error(String, Throwable)method except that the marker data is also taken into consideration.getName()Return the name of thisLoggerinstance.voidLog a message with the specific Marker at the INFO level.voidThis method is similar toLogger.info(String, Object)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.info(String, Object...)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.info(String, Object, Object)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.info(String, Throwable)method except that the marker data is also taken into consideration.booleanisDebugEnabled(Marker marker) Similar toLogger.isDebugEnabled()method except that the marker data is also taken into account.booleanisErrorEnabled(Marker marker) Similar toLogger.isErrorEnabled()method except that the marker data is also taken into consideration.booleanisInfoEnabled(Marker marker) Similar toLogger.isInfoEnabled()method except that the marker data is also taken into consideration.booleanisTraceEnabled(Marker marker) Similar toLogger.isTraceEnabled()method except that the marker data is also taken into account.booleanisWarnEnabled(Marker marker) Similar toLogger.isWarnEnabled()method except that the marker data is also taken into consideration.protected ObjectReplace this instance with a homonymous (same name) logger returned by LoggerFactory.toString()voidLog a message with the specific Marker at the TRACE level.voidThis method is similar toLogger.trace(String, Object)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.trace(String, Object...)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.trace(String, Object, Object)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.trace(String, Throwable)method except that the marker data is also taken into consideration.voidLog a message with the specific Marker at the WARN level.voidThis method is similar toLogger.warn(String, Object)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.warn(String, Object...)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.warn(String, Object, Object)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.warn(String, Throwable)method except that the marker data is also taken into consideration.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.slf4j.Logger
debug, debug, debug, debug, debug, error, error, error, error, error, getName, info, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn
-
Field Details
-
name
-
-
Constructor Details
-
MarkerIgnoringBase
public MarkerIgnoringBase()
-
-
Method Details
-
isTraceEnabled
Description copied from interface:LoggerSimilar toLogger.isTraceEnabled()method except that the marker data is also taken into account.- Specified by:
isTraceEnabledin interfaceLogger- Parameters:
marker- The marker data to take into consideration- Returns:
- True if this Logger is enabled for the TRACE level, false otherwise.
-
trace
Description copied from interface:LoggerLog a message with the specific Marker at the TRACE level. -
trace
Description copied from interface:LoggerThis method is similar toLogger.trace(String, Object)method except that the marker data is also taken into consideration. -
trace
Description copied from interface:LoggerThis method is similar toLogger.trace(String, Object, Object)method except that the marker data is also taken into consideration. -
trace
Description copied from interface:LoggerThis method is similar toLogger.trace(String, Object...)method except that the marker data is also taken into consideration. -
trace
Description copied from interface:LoggerThis method is similar toLogger.trace(String, Throwable)method except that the marker data is also taken into consideration. -
isDebugEnabled
Description copied from interface:LoggerSimilar toLogger.isDebugEnabled()method except that the marker data is also taken into account.- Specified by:
isDebugEnabledin interfaceLogger- Parameters:
marker- The marker data to take into consideration- Returns:
- True if this Logger is enabled for the DEBUG level, false otherwise.
-
debug
Description copied from interface:LoggerLog a message with the specific Marker at the DEBUG level. -
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, Object, Object)method except that the marker data is also taken into consideration. -
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
Description copied from interface:LoggerSimilar toLogger.isInfoEnabled()method except that the marker data is also taken into consideration.- Specified by:
isInfoEnabledin interfaceLogger- Parameters:
marker- The marker data to take into consideration- Returns:
- true if this logger is warn enabled, false otherwise
-
info
Description copied from interface:LoggerLog a message with the specific Marker at the INFO level. -
info
Description copied from interface:LoggerThis method is similar toLogger.info(String, Object)method except that the marker data is also taken into consideration. -
info
Description copied from interface:LoggerThis method is similar toLogger.info(String, Object, Object)method except that the marker data is also taken into consideration. -
info
Description copied from interface:LoggerThis method is similar toLogger.info(String, Object...)method except that the marker data is also taken into consideration. -
info
Description copied from interface:LoggerThis method is similar toLogger.info(String, Throwable)method except that the marker data is also taken into consideration. -
isWarnEnabled
Description copied from interface:LoggerSimilar toLogger.isWarnEnabled()method except that the marker data is also taken into consideration.- Specified by:
isWarnEnabledin interfaceLogger- Parameters:
marker- The marker data to take into consideration- Returns:
- True if this Logger is enabled for the WARN level, false otherwise.
-
warn
Description copied from interface:LoggerLog a message with the specific Marker at the WARN level. -
warn
Description copied from interface:LoggerThis method is similar toLogger.warn(String, Object)method except that the marker data is also taken into consideration. -
warn
Description copied from interface:LoggerThis method is similar toLogger.warn(String, Object, Object)method except that the marker data is also taken into consideration. -
warn
Description copied from interface:LoggerThis method is similar toLogger.warn(String, Object...)method except that the marker data is also taken into consideration. -
warn
Description copied from interface:LoggerThis method is similar toLogger.warn(String, Throwable)method except that the marker data is also taken into consideration. -
isErrorEnabled
Description copied from interface:LoggerSimilar toLogger.isErrorEnabled()method except that the marker data is also taken into consideration.- Specified by:
isErrorEnabledin interfaceLogger- Parameters:
marker- The marker data to take into consideration- Returns:
- True if this Logger is enabled for the ERROR level, false otherwise.
-
error
Description copied from interface:LoggerLog a message with the specific Marker at the ERROR level. -
error
Description copied from interface:LoggerThis method is similar toLogger.error(String, Object)method except that the marker data is also taken into consideration. -
error
Description copied from interface:LoggerThis method is similar toLogger.error(String, Object, Object)method except that the marker data is also taken into consideration. -
error
Description copied from interface:LoggerThis method is similar toLogger.error(String, Object...)method except that the marker data is also taken into consideration. -
error
Description copied from interface:LoggerThis method is similar toLogger.error(String, Throwable)method except that the marker data is also taken into consideration. -
toString
-
getName
Description copied from interface:LoggerReturn the name of thisLoggerinstance. -
readResolve
Replace 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 references 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
-