Package org.slf4j.helpers
Class MarkerIgnoringBase
java.lang.Object
org.slf4j.helpers.NamedLoggerBase
org.slf4j.helpers.MarkerIgnoringBase
- All Implemented Interfaces:
Serializable
,Logger
- Direct Known Subclasses:
JCLLoggerAdapter
,JDK14LoggerAdapter
,NOPLogger
,SimpleLogger
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.
- See Also:
-
Field Summary
FieldsFields inherited from class org.slf4j.helpers.NamedLoggerBase
name
Fields inherited from interface org.slf4j.Logger
ROOT_LOGGER_NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Log a message with the specific Marker at the DEBUG level.void
This method is similar toLogger.debug(String, Object)
method except that the marker data is also taken into consideration.void
This method is similar toLogger.debug(String, Object...)
method except that the marker data is also taken into consideration.void
This method is similar toLogger.debug(String, Object, Object)
method except that the marker data is also taken into consideration.void
This method is similar toLogger.debug(String, Throwable)
method except that the marker data is also taken into consideration.void
Log a message with the specific Marker at the ERROR level.void
This method is similar toLogger.error(String, Object)
method except that the marker data is also taken into consideration.void
This method is similar toLogger.error(String, Object...)
method except that the marker data is also taken into consideration.void
This method is similar toLogger.error(String, Object, Object)
method except that the marker data is also taken into consideration.void
This method is similar toLogger.error(String, Throwable)
method except that the marker data is also taken into consideration.void
Log a message with the specific Marker at the INFO level.void
This method is similar toLogger.info(String, Object)
method except that the marker data is also taken into consideration.void
This method is similar toLogger.info(String, Object...)
method except that the marker data is also taken into consideration.void
This method is similar toLogger.info(String, Object, Object)
method except that the marker data is also taken into consideration.void
This method is similar toLogger.info(String, Throwable)
method except that the marker data is also taken into consideration.boolean
isDebugEnabled
(Marker marker) Similar toLogger.isDebugEnabled()
method except that the marker data is also taken into account.boolean
isErrorEnabled
(Marker marker) Similar toLogger.isErrorEnabled()
method except that the marker data is also taken into consideration.boolean
isInfoEnabled
(Marker marker) Similar toLogger.isInfoEnabled()
method except that the marker data is also taken into consideration.boolean
isTraceEnabled
(Marker marker) Similar toLogger.isTraceEnabled()
method except that the marker data is also taken into account.boolean
isWarnEnabled
(Marker marker) Similar toLogger.isWarnEnabled()
method except that the marker data is also taken into consideration.toString()
void
Log a message with the specific Marker at the TRACE level.void
This method is similar toLogger.trace(String, Object)
method except that the marker data is also taken into consideration.void
This method is similar toLogger.trace(String, Object...)
method except that the marker data is also taken into consideration.void
This method is similar toLogger.trace(String, Object, Object)
method except that the marker data is also taken into consideration.void
This method is similar toLogger.trace(String, Throwable)
method except that the marker data is also taken into consideration.void
Log a message with the specific Marker at the WARN level.void
This method is similar toLogger.warn(String, Object)
method except that the marker data is also taken into consideration.void
This method is similar toLogger.warn(String, Object...)
method except that the marker data is also taken into consideration.void
This method is similar toLogger.warn(String, Object, Object)
method except that the marker data is also taken into consideration.void
This method is similar toLogger.warn(String, Throwable)
method except that the marker data is also taken into consideration.Methods inherited from class org.slf4j.helpers.NamedLoggerBase
getName, readResolve
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
MarkerIgnoringBase
public MarkerIgnoringBase()
-
-
Method Details
-
isTraceEnabled
Description copied from interface:Logger
Similar toLogger.isTraceEnabled()
method except that the marker data is also taken into account.- Specified by:
isTraceEnabled
in 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:Logger
Log a message with the specific Marker at the TRACE level. -
trace
Description copied from interface:Logger
This method is similar toLogger.trace(String, Object)
method except that the marker data is also taken into consideration. -
trace
Description copied from interface:Logger
This method is similar toLogger.trace(String, Object, Object)
method except that the marker data is also taken into consideration. -
trace
Description copied from interface:Logger
This method is similar toLogger.trace(String, Object...)
method except that the marker data is also taken into consideration. -
trace
Description copied from interface:Logger
This method is similar toLogger.trace(String, Throwable)
method except that the marker data is also taken into consideration. -
isDebugEnabled
Description copied from interface:Logger
Similar toLogger.isDebugEnabled()
method except that the marker data is also taken into account.- Specified by:
isDebugEnabled
in 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:Logger
Log a message with the specific Marker at the DEBUG level. -
debug
Description copied from interface:Logger
This method is similar toLogger.debug(String, Object)
method except that the marker data is also taken into consideration. -
debug
Description copied from interface:Logger
This method is similar toLogger.debug(String, Object, Object)
method except that the marker data is also taken into consideration. -
debug
Description copied from interface:Logger
This method is similar toLogger.debug(String, Object...)
method except that the marker data is also taken into consideration. -
debug
Description copied from interface:Logger
This method is similar toLogger.debug(String, Throwable)
method except that the marker data is also taken into consideration. -
isInfoEnabled
Description copied from interface:Logger
Similar toLogger.isInfoEnabled()
method except that the marker data is also taken into consideration.- Specified by:
isInfoEnabled
in 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:Logger
Log a message with the specific Marker at the INFO level. -
info
Description copied from interface:Logger
This method is similar toLogger.info(String, Object)
method except that the marker data is also taken into consideration. -
info
Description copied from interface:Logger
This method is similar toLogger.info(String, Object, Object)
method except that the marker data is also taken into consideration. -
info
Description copied from interface:Logger
This method is similar toLogger.info(String, Object...)
method except that the marker data is also taken into consideration. -
info
Description copied from interface:Logger
This method is similar toLogger.info(String, Throwable)
method except that the marker data is also taken into consideration. -
isWarnEnabled
Description copied from interface:Logger
Similar toLogger.isWarnEnabled()
method except that the marker data is also taken into consideration.- Specified by:
isWarnEnabled
in 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:Logger
Log a message with the specific Marker at the WARN level. -
warn
Description copied from interface:Logger
This method is similar toLogger.warn(String, Object)
method except that the marker data is also taken into consideration. -
warn
Description copied from interface:Logger
This method is similar toLogger.warn(String, Object, Object)
method except that the marker data is also taken into consideration. -
warn
Description copied from interface:Logger
This method is similar toLogger.warn(String, Object...)
method except that the marker data is also taken into consideration. -
warn
Description copied from interface:Logger
This method is similar toLogger.warn(String, Throwable)
method except that the marker data is also taken into consideration. -
isErrorEnabled
Description copied from interface:Logger
Similar toLogger.isErrorEnabled()
method except that the marker data is also taken into consideration.- Specified by:
isErrorEnabled
in 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:Logger
Log a message with the specific Marker at the ERROR level. -
error
Description copied from interface:Logger
This method is similar toLogger.error(String, Object)
method except that the marker data is also taken into consideration. -
error
Description copied from interface:Logger
This method is similar toLogger.error(String, Object, Object)
method except that the marker data is also taken into consideration. -
error
Description copied from interface:Logger
This method is similar toLogger.error(String, Object...)
method except that the marker data is also taken into consideration. -
error
Description copied from interface:Logger
This method is similar toLogger.error(String, Throwable)
method except that the marker data is also taken into consideration. -
toString
-