Top Description Fields Constructors Methods
org.slf4j.helpers

public Class SubstituteLogger

extends Object
implements Logger
Class Inheritance
All Implemented Interfaces
org.slf4j.Logger
Imports
java.lang.reflect.InvocationTargetException, .Method, java.util.Queue, org.slf4j.Logger, .Marker, org.slf4j.event.EventRecordingLogger, .Level, .LoggingEvent, .SubstituteLoggingEvent, org.slf4j.spi.LoggingEventBuilder

A logger implementation which logs via a delegate logger. By default, the delegate is a NOPLogger. However, a different delegate can be set at any time.

See also the relevant error code documentation.

Authors
Chetan Mehrotra, Ceki Gulcu

Field Summary

Modifier and TypeField and Description
private volatile Logger
public final boolean
private Boolean
private final Queue<SubstituteLoggingEvent>
private EventRecordingLogger
private Method
private final String

Constructor Summary

AccessConstructor and Description
public
SubstituteLogger(String name, Queue<SubstituteLoggingEvent> eventQueue, boolean createdPostInitialization)

Method Summary

Modifier and TypeMethod and Description
public LoggingEventBuilder
atDebug()

Overrides default org.slf4j.Logger.atDebug.

Entry point for fluent-logging for org.slf4j.event.Level#DEBUG level.

public LoggingEventBuilder
atError()

Overrides default org.slf4j.Logger.atError.

Entry point for fluent-logging for org.slf4j.event.Level#ERROR level.

public LoggingEventBuilder
atInfo()

Overrides default org.slf4j.Logger.atInfo.

Entry point for fluent-logging for org.slf4j.event.Level#INFO level.

public LoggingEventBuilder
atLevel(Level level)

Overrides default org.slf4j.Logger.atLevel.

Make a new LoggingEventBuilder instance as appropriate for this logger and the desired Level passed as parameter.

public LoggingEventBuilder
atTrace()

Overrides default org.slf4j.Logger.atTrace.

Entry point for fluent-logging for org.slf4j.event.Level#TRACE level.

public LoggingEventBuilder
atWarn()

Overrides default org.slf4j.Logger.atWarn.

Entry point for fluent-logging for org.slf4j.event.Level#WARN level.

public void
debug(String msg)

Implements org.slf4j.Logger.debug.

Log a message at the DEBUG level.

public void
debug(String format, Object arg)

Implements org.slf4j.Logger.debug.

Log a message at the DEBUG level according to the specified format and argument.

public void
debug(String format, Object arg1, Object arg2)

Implements org.slf4j.Logger.debug.

Log a message at the DEBUG level according to the specified format and arguments.

public void
debug(String format, Object... arguments)

Implements org.slf4j.Logger.debug.

Log a message at the DEBUG level according to the specified format and arguments.

public void
debug(String msg, Throwable t)

Implements org.slf4j.Logger.debug.

Log an exception (throwable) at the DEBUG level with an accompanying message.

public void
debug(Marker marker, String msg)

Implements org.slf4j.Logger.debug.

Log a message with the specific Marker at the DEBUG level.

public void
debug(Marker marker, String format, Object arg)

Implements org.slf4j.Logger.debug.

This method is similar to debug(String, Object) method except that the marker data is also taken into consideration.

public void
debug(Marker marker, String format, Object arg1, Object arg2)

Implements org.slf4j.Logger.debug.

This method is similar to debug(String, Object, Object) method except that the marker data is also taken into consideration.

public void
debug(Marker marker, String format, Object... arguments)

Implements org.slf4j.Logger.debug.

This method is similar to debug(String, Object...) method except that the marker data is also taken into consideration.

public void
debug(Marker marker, String msg, Throwable t)

Implements org.slf4j.Logger.debug.

This method is similar to debug(String, Throwable) method except that the marker data is also taken into consideration.

public Logger
delegate()

Return the delegate logger instance if set.

public boolean
equals(Object o)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

public void
error(String msg)

Implements org.slf4j.Logger.error.

Log a message at the ERROR level.

public void
error(String format, Object arg)

Implements org.slf4j.Logger.error.

Log a message at the ERROR level according to the specified format and argument.

public void
error(String format, Object arg1, Object arg2)

Implements org.slf4j.Logger.error.

Log a message at the ERROR level according to the specified format and arguments.

public void
error(String format, Object... arguments)

Implements org.slf4j.Logger.error.

Log a message at the ERROR level according to the specified format and arguments.

public void
error(String msg, Throwable t)

Implements org.slf4j.Logger.error.

Log an exception (throwable) at the ERROR level with an accompanying message.

public void
error(Marker marker, String msg)

Implements org.slf4j.Logger.error.

Log a message with the specific Marker at the ERROR level.

public void
error(Marker marker, String format, Object arg)

Implements org.slf4j.Logger.error.

This method is similar to error(String, Object) method except that the marker data is also taken into consideration.

public void
error(Marker marker, String format, Object arg1, Object arg2)

Implements org.slf4j.Logger.error.

This method is similar to error(String, Object, Object) method except that the marker data is also taken into consideration.

public void
error(Marker marker, String format, Object... arguments)

Implements org.slf4j.Logger.error.

This method is similar to error(String, Object...) method except that the marker data is also taken into consideration.

public void
error(Marker marker, String msg, Throwable t)

Implements org.slf4j.Logger.error.

This method is similar to error(String, Throwable) method except that the marker data is also taken into consideration.

private Logger
public String
getName()

Implements org.slf4j.Logger.getName.

Return the name of this Logger instance.

public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for this object.

public void
info(String msg)

Implements org.slf4j.Logger.info.

Log a message at the INFO level.

public void
info(String format, Object arg)

Implements org.slf4j.Logger.info.

Log a message at the INFO level according to the specified format and argument.

public void
info(String format, Object arg1, Object arg2)

Implements org.slf4j.Logger.info.

Log a message at the INFO level according to the specified format and arguments.

public void
info(String format, Object... arguments)

Implements org.slf4j.Logger.info.

Log a message at the INFO level according to the specified format and arguments.

public void
info(String msg, Throwable t)

Implements org.slf4j.Logger.info.

Log an exception (throwable) at the INFO level with an accompanying message.

public void
info(Marker marker, String msg)

Implements org.slf4j.Logger.info.

Log a message with the specific Marker at the INFO level.

public void
info(Marker marker, String format, Object arg)

Implements org.slf4j.Logger.info.

This method is similar to info(String, Object) method except that the marker data is also taken into consideration.

public void
info(Marker marker, String format, Object arg1, Object arg2)

Implements org.slf4j.Logger.info.

This method is similar to info(String, Object, Object) method except that the marker data is also taken into consideration.

public void
info(Marker marker, String format, Object... arguments)

Implements org.slf4j.Logger.info.

This method is similar to info(String, Object...) method except that the marker data is also taken into consideration.

public void
info(Marker marker, String msg, Throwable t)

Implements org.slf4j.Logger.info.

This method is similar to info(String, Throwable) method except that the marker data is also taken into consideration.

public boolean
isDebugEnabled()

Implements org.slf4j.Logger.isDebugEnabled.

Is the logger instance enabled for the DEBUG level?

public boolean
isDebugEnabled(Marker marker)

Implements org.slf4j.Logger.isDebugEnabled.

Similar to isDebugEnabled() method except that the marker data is also taken into account.

public boolean
public boolean
public boolean
public boolean
isEnabledForLevel(Level level)

Overrides default org.slf4j.Logger.isEnabledForLevel.

Returns whether this Logger is enabled for a given Level.

public boolean
isErrorEnabled()

Implements org.slf4j.Logger.isErrorEnabled.

Is the logger instance enabled for the ERROR level?

public boolean
isErrorEnabled(Marker marker)

Implements org.slf4j.Logger.isErrorEnabled.

Similar to isErrorEnabled() method except that the marker data is also taken into consideration.

public boolean
isInfoEnabled()

Implements org.slf4j.Logger.isInfoEnabled.

Is the logger instance enabled for the INFO level?

public boolean
isInfoEnabled(Marker marker)

Implements org.slf4j.Logger.isInfoEnabled.

Similar to isInfoEnabled() method except that the marker data is also taken into consideration.

public boolean
isTraceEnabled()

Implements org.slf4j.Logger.isTraceEnabled.

Is the logger instance enabled for the TRACE level?

public boolean
isTraceEnabled(Marker marker)

Implements org.slf4j.Logger.isTraceEnabled.

Similar to isTraceEnabled() method except that the marker data is also taken into account.

public boolean
isWarnEnabled()

Implements org.slf4j.Logger.isWarnEnabled.

Is the logger instance enabled for the WARN level?

public boolean
isWarnEnabled(Marker marker)

Implements org.slf4j.Logger.isWarnEnabled.

Similar to isWarnEnabled() method except that the marker data is also taken into consideration.

public void
public LoggingEventBuilder
makeLoggingEventBuilder(Level level)

Overrides default org.slf4j.Logger.makeLoggingEventBuilder.

Make a new LoggingEventBuilder instance as appropriate for this logger implementation.

public void
setDelegate(Logger delegate)

Typically called after the org.slf4j.LoggerFactory initialization phase is completed.

public void
trace(String msg)

Implements org.slf4j.Logger.trace.

Log a message at the TRACE level.

public void
trace(String format, Object arg)

Implements org.slf4j.Logger.trace.

Log a message at the TRACE level according to the specified format and argument.

public void
trace(String format, Object arg1, Object arg2)

Implements org.slf4j.Logger.trace.

Log a message at the TRACE level according to the specified format and arguments.

public void
trace(String format, Object... arguments)

Implements org.slf4j.Logger.trace.

Log a message at the TRACE level according to the specified format and arguments.

public void
trace(String msg, Throwable t)

Implements org.slf4j.Logger.trace.

Log an exception (throwable) at the TRACE level with an accompanying message.

public void
trace(Marker marker, String msg)

Implements org.slf4j.Logger.trace.

Log a message with the specific Marker at the TRACE level.

public void
trace(Marker marker, String format, Object arg)

Implements org.slf4j.Logger.trace.

This method is similar to trace(String, Object) method except that the marker data is also taken into consideration.

public void
trace(Marker marker, String format, Object arg1, Object arg2)

Implements org.slf4j.Logger.trace.

This method is similar to trace(String, Object, Object) method except that the marker data is also taken into consideration.

public void
trace(Marker marker, String format, Object... arguments)

Implements org.slf4j.Logger.trace.

This method is similar to trace(String, Object...) method except that the marker data is also taken into consideration.

public void
trace(Marker marker, String msg, Throwable t)

Implements org.slf4j.Logger.trace.

This method is similar to trace(String, Throwable) method except that the marker data is also taken into consideration.

public void
warn(String msg)

Implements org.slf4j.Logger.warn.

Log a message at the WARN level.

public void
warn(String format, Object arg)

Implements org.slf4j.Logger.warn.

Log a message at the WARN level according to the specified format and argument.

public void
warn(String format, Object arg1, Object arg2)

Implements org.slf4j.Logger.warn.

Log a message at the WARN level according to the specified format and arguments.

public void
warn(String format, Object... arguments)

Implements org.slf4j.Logger.warn.

Log a message at the WARN level according to the specified format and arguments.

public void
warn(String msg, Throwable t)

Implements org.slf4j.Logger.warn.

Log an exception (throwable) at the WARN level with an accompanying message.

public void
warn(Marker marker, String msg)

Implements org.slf4j.Logger.warn.

Log a message with the specific Marker at the WARN level.

public void
warn(Marker marker, String format, Object arg)

Implements org.slf4j.Logger.warn.

This method is similar to warn(String, Object) method except that the marker data is also taken into consideration.

public void
warn(Marker marker, String format, Object arg1, Object arg2)

Implements org.slf4j.Logger.warn.

This method is similar to warn(String, Object, Object) method except that the marker data is also taken into consideration.

public void
warn(Marker marker, String format, Object... arguments)

Implements org.slf4j.Logger.warn.

This method is similar to warn(String, Object...) method except that the marker data is also taken into consideration.

public void
warn(Marker marker, String msg, Throwable t)

Implements org.slf4j.Logger.warn.

This method is similar to warn(String, Throwable) method except that the marker data is also taken into consideration.

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAlltoStringwaitwaitwait