Package org.slf4j.helpers
Class MarkerIgnoringBase
- java.lang.Object
-
- org.slf4j.helpers.MarkerIgnoringBase
-
- All Implemented Interfaces:
java.io.Serializable
,Logger
- Direct Known Subclasses:
NOPLogger
public abstract class MarkerIgnoringBase extends java.lang.Object implements Logger
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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.slf4j.Logger
ROOT_LOGGER_NAME
-
-
Constructor Summary
Constructors Constructor Description MarkerIgnoringBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
debug(Marker marker, java.lang.String msg)
Log a message with the specific Marker at the DEBUG level.void
debug(Marker marker, java.lang.String format, java.lang.Object arg)
This method is similar toLogger.debug(String, Object)
method except that the marker data is also taken into consideration.void
debug(Marker marker, java.lang.String format, java.lang.Object... arguments)
This method is similar toLogger.debug(String, Object...)
method except that the marker data is also taken into consideration.void
debug(Marker marker, java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
This method is similar toLogger.debug(String, Object, Object)
method except that the marker data is also taken into consideration.void
debug(Marker marker, java.lang.String msg, java.lang.Throwable t)
This method is similar toLogger.debug(String, Throwable)
method except that the marker data is also taken into consideration.void
error(Marker marker, java.lang.String msg)
Log a message with the specific Marker at the ERROR level.void
error(Marker marker, java.lang.String format, java.lang.Object arg)
This method is similar toLogger.error(String, Object)
method except that the marker data is also taken into consideration.void
error(Marker marker, java.lang.String format, java.lang.Object... arguments)
This method is similar toLogger.error(String, Object...)
method except that the marker data is also taken into consideration.void
error(Marker marker, java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
This method is similar toLogger.error(String, Object, Object)
method except that the marker data is also taken into consideration.void
error(Marker marker, java.lang.String msg, java.lang.Throwable t)
This method is similar toLogger.error(String, Throwable)
method except that the marker data is also taken into consideration.java.lang.String
getName()
Return the name of thisLogger
instance.void
info(Marker marker, java.lang.String msg)
Log a message with the specific Marker at the INFO level.void
info(Marker marker, java.lang.String format, java.lang.Object arg)
This method is similar toLogger.info(String, Object)
method except that the marker data is also taken into consideration.void
info(Marker marker, java.lang.String format, java.lang.Object... arguments)
This method is similar toLogger.info(String, Object...)
method except that the marker data is also taken into consideration.void
info(Marker marker, java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
This method is similar toLogger.info(String, Object, Object)
method except that the marker data is also taken into consideration.void
info(Marker marker, java.lang.String msg, java.lang.Throwable t)
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.java.lang.String
toString()
void
trace(Marker marker, java.lang.String msg)
Log a message with the specific Marker at the TRACE level.void
trace(Marker marker, java.lang.String format, java.lang.Object arg)
This method is similar toLogger.trace(String, Object)
method except that the marker data is also taken into consideration.void
trace(Marker marker, java.lang.String format, java.lang.Object... arguments)
This method is similar toLogger.trace(String, Object...)
method except that the marker data is also taken into consideration.void
trace(Marker marker, java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
This method is similar toLogger.trace(String, Object, Object)
method except that the marker data is also taken into consideration.void
trace(Marker marker, java.lang.String msg, java.lang.Throwable t)
This method is similar toLogger.trace(String, Throwable)
method except that the marker data is also taken into consideration.void
warn(Marker marker, java.lang.String msg)
Log a message with the specific Marker at the WARN level.void
warn(Marker marker, java.lang.String format, java.lang.Object arg)
This method is similar toLogger.warn(String, Object)
method except that the marker data is also taken into consideration.void
warn(Marker marker, java.lang.String format, java.lang.Object... arguments)
This method is similar toLogger.warn(String, Object...)
method except that the marker data is also taken into consideration.void
warn(Marker marker, java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
This method is similar toLogger.warn(String, Object, Object)
method except that the marker data is also taken into consideration.void
warn(Marker marker, java.lang.String msg, java.lang.Throwable t)
This 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
equals, 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
-
-
-
-
Method Detail
-
isTraceEnabled
public boolean isTraceEnabled(Marker marker)
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
public void trace(Marker marker, java.lang.String msg)
Description copied from interface:Logger
Log a message with the specific Marker at the TRACE level.
-
trace
public void trace(Marker marker, java.lang.String format, java.lang.Object arg)
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
public void trace(Marker marker, java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
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
public void trace(Marker marker, java.lang.String format, java.lang.Object... arguments)
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
public void trace(Marker marker, java.lang.String msg, java.lang.Throwable t)
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
public boolean isDebugEnabled(Marker marker)
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
public void debug(Marker marker, java.lang.String msg)
Description copied from interface:Logger
Log a message with the specific Marker at the DEBUG level.
-
debug
public void debug(Marker marker, java.lang.String format, java.lang.Object arg)
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
public void debug(Marker marker, java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
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
public void debug(Marker marker, java.lang.String format, java.lang.Object... arguments)
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
public void debug(Marker marker, java.lang.String msg, java.lang.Throwable t)
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
public boolean isInfoEnabled(Marker marker)
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
public void info(Marker marker, java.lang.String msg)
Description copied from interface:Logger
Log a message with the specific Marker at the INFO level.
-
info
public void info(Marker marker, java.lang.String format, java.lang.Object arg)
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
public void info(Marker marker, java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
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
public void info(Marker marker, java.lang.String format, java.lang.Object... arguments)
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
public void info(Marker marker, java.lang.String msg, java.lang.Throwable t)
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
public boolean isWarnEnabled(Marker marker)
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
public void warn(Marker marker, java.lang.String msg)
Description copied from interface:Logger
Log a message with the specific Marker at the WARN level.
-
warn
public void warn(Marker marker, java.lang.String format, java.lang.Object arg)
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
public void warn(Marker marker, java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
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
public void warn(Marker marker, java.lang.String format, java.lang.Object... arguments)
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
public void warn(Marker marker, java.lang.String msg, java.lang.Throwable t)
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
public boolean isErrorEnabled(Marker marker)
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
public void error(Marker marker, java.lang.String msg)
Description copied from interface:Logger
Log a message with the specific Marker at the ERROR level.
-
error
public void error(Marker marker, java.lang.String format, java.lang.Object arg)
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
public void error(Marker marker, java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
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
public void error(Marker marker, java.lang.String format, java.lang.Object... arguments)
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
public void error(Marker marker, java.lang.String msg, java.lang.Throwable t)
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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-