Top Description Fields Constructors Methods
org.slf4j.event

public Class EventRecordingLogger

extends LegacyAbstractLogger
Class Inheritance
Imports
java.util.Queue, org.slf4j.Marker, org.slf4j.helpers.LegacyAbstractLogger, .SubstituteLogger

This class is used to record events during the initialization phase of the underlying logging framework. It is called by SubstituteLogger.
Authors
Ceki Gülcü, Wessel van Norel

Field Summary

Modifier and TypeField and Description
pack-priv Queue<SubstituteLoggingEvent>
pack-priv SubstituteLogger
pack-priv String
pack-priv static final boolean
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected String
public String
getName()

Overrides org.slf4j.helpers.AbstractLogger.getName.

Implements org.slf4j.Logger.getName.

Return the name of this Logger instance.

protected void
handleNormalizedLoggingCall(Level level, Marker marker, String msg, Object[] args, Throwable throwable)

Implements abstract org.slf4j.helpers.AbstractLogger.handleNormalizedLoggingCall.

Given various arguments passed as parameters, perform actual logging.

public boolean
isDebugEnabled()

Implements org.slf4j.Logger.isDebugEnabled.

Is the logger instance enabled for the DEBUG level?

public boolean
isErrorEnabled()

Implements org.slf4j.Logger.isErrorEnabled.

Is the logger instance enabled for the ERROR level?

public boolean
isInfoEnabled()

Implements org.slf4j.Logger.isInfoEnabled.

Is the logger instance enabled for the INFO level?

public boolean
isTraceEnabled()

Implements org.slf4j.Logger.isTraceEnabled.

Is the logger instance enabled for the TRACE level?

public boolean
isWarnEnabled()

Implements org.slf4j.Logger.isWarnEnabled.

Is the logger instance enabled for the WARN level?

Inherited from org.slf4j.helpers.LegacyAbstractLogger:
isDebugEnabledisErrorEnabledisInfoEnabledisTraceEnabledisWarnEnabled

Field Detail

eventQueueback to summary
pack-priv Queue<SubstituteLoggingEvent> eventQueue
loggerback to summary
pack-priv SubstituteLogger logger
nameback to summary
pack-priv String name

Hides org.slf4j.helpers.AbstractLogger.name.

RECORD_ALL_EVENTSback to summary
pack-priv static final boolean RECORD_ALL_EVENTS
serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.slf4j.helpers.LegacyAbstractLogger.serialVersionUID.

Constructor Detail

EventRecordingLoggerback to summary
public EventRecordingLogger(SubstituteLogger logger, Queue<SubstituteLoggingEvent> eventQueue)

Method Detail

getFullyQualifiedCallerNameback to summary
protected String getFullyQualifiedCallerName()

Implements abstract org.slf4j.helpers.AbstractLogger.getFullyQualifiedCallerName.

Annotations
@Override
getNameback to summary
public String getName()

Overrides org.slf4j.helpers.AbstractLogger.getName.

Implements org.slf4j.Logger.getName.

Doc from org.slf4j.Logger.getName.

Return the name of this Logger instance.

handleNormalizedLoggingCallback to summary
protected void handleNormalizedLoggingCall(Level level, Marker marker, String msg, Object[] args, Throwable throwable)

Implements abstract org.slf4j.helpers.AbstractLogger.handleNormalizedLoggingCall.

Doc from org.slf4j.helpers.AbstractLogger.handleNormalizedLoggingCall.

Given various arguments passed as parameters, perform actual logging.

This method assumes that the separation of the args array into actual objects and a throwable has been already operated.

isDebugEnabledback to summary
public boolean isDebugEnabled()

Implements org.slf4j.Logger.isDebugEnabled.

Doc from org.slf4j.Logger.isDebugEnabled.

Is the logger instance enabled for the DEBUG level?

isErrorEnabledback to summary
public boolean isErrorEnabled()

Implements org.slf4j.Logger.isErrorEnabled.

Doc from org.slf4j.Logger.isErrorEnabled.

Is the logger instance enabled for the ERROR level?

isInfoEnabledback to summary
public boolean isInfoEnabled()

Implements org.slf4j.Logger.isInfoEnabled.

Doc from org.slf4j.Logger.isInfoEnabled.

Is the logger instance enabled for the INFO level?

isTraceEnabledback to summary
public boolean isTraceEnabled()

Implements org.slf4j.Logger.isTraceEnabled.

Doc from org.slf4j.Logger.isTraceEnabled.

Is the logger instance enabled for the TRACE level?

isWarnEnabledback to summary
public boolean isWarnEnabled()

Implements org.slf4j.Logger.isWarnEnabled.

Doc from org.slf4j.Logger.isWarnEnabled.

Is the logger instance enabled for the WARN level?