Package org.slf4j.event
Class EventRecordingLogger
java.lang.Object
org.slf4j.helpers.AbstractLogger
org.slf4j.helpers.LegacyAbstractLogger
org.slf4j.event.EventRecordingLogger
- All Implemented Interfaces:
- Serializable,- Logger
This class is used to record events during the initialization phase of the
 underlying logging framework. It is called by 
SubstituteLogger.- Author:
- Ceki Gülcü, Wessel van Norel
- See Also:
- 
Field SummaryFields inherited from interface org.slf4j.LoggerROOT_LOGGER_NAME
- 
Constructor SummaryConstructorsConstructorDescriptionEventRecordingLogger(SubstituteLogger logger, Queue<SubstituteLoggingEvent> eventQueue) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected StringgetName()Return the name of thisLoggerinstance.protected voidhandleNormalizedLoggingCall(Level level, Marker marker, String msg, Object[] args, Throwable throwable) Given various arguments passed as parameters, perform actual logging.booleanIs the logger instance enabled for the DEBUG level?booleanIs the logger instance enabled for the ERROR level?booleanIs the logger instance enabled for the INFO level?booleanIs the logger instance enabled for the TRACE level?booleanIs the logger instance enabled for the WARN level?Methods inherited from class org.slf4j.helpers.LegacyAbstractLoggerisDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabledMethods inherited from class org.slf4j.helpers.AbstractLoggerdebug, debug, debug, debug, debug, debug, debug, debug, debug, debug, error, error, error, error, error, error, error, error, error, error, info, info, info, info, info, info, info, info, info, info, readResolve, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn, warn, warn, warn, warn, warnMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.slf4j.LoggeratDebug, atError, atInfo, atLevel, atTrace, atWarn, isEnabledForLevel, makeLoggingEventBuilder
- 
Constructor Details- 
EventRecordingLogger
 
- 
- 
Method Details- 
getName
- 
isTraceEnabledDescription copied from interface:LoggerIs the logger instance enabled for the TRACE level?- Returns:
- True if this Logger is enabled for the TRACE level, false otherwise.
 
- 
isDebugEnabledDescription copied from interface:LoggerIs the logger instance enabled for the DEBUG level?- Returns:
- True if this Logger is enabled for the DEBUG level, false otherwise.
 
- 
isInfoEnabledDescription copied from interface:LoggerIs the logger instance enabled for the INFO level?- Returns:
- True if this Logger is enabled for the INFO level, false otherwise.
 
- 
isWarnEnabledDescription copied from interface:LoggerIs the logger instance enabled for the WARN level?- Returns:
- True if this Logger is enabled for the WARN level, false otherwise.
 
- 
isErrorEnabledDescription copied from interface:LoggerIs the logger instance enabled for the ERROR level?- Returns:
- True if this Logger is enabled for the ERROR level, false otherwise.
 
- 
handleNormalizedLoggingCallprotected void handleNormalizedLoggingCall(Level level, Marker marker, String msg, Object[] args, Throwable throwable) Description copied from class:AbstractLoggerGiven 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. - Specified by:
- handleNormalizedLoggingCallin class- AbstractLogger
- Parameters:
- level- the SLF4J level for this event
- marker- The marker to be used for this event, may be null.
- msg- The message pattern which will be parsed and formatted
- args- the array of arguments to be formatted, may be null
- throwable- The exception whose stack trace should be logged, may be null
 
- 
getFullyQualifiedCallerName- Specified by:
- getFullyQualifiedCallerNamein class- AbstractLogger
 
 
-