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 Summary
Fields inherited from interface org.slf4j.Logger
ROOT_LOGGER_NAME -
Constructor Summary
ConstructorsConstructorDescriptionEventRecordingLogger(SubstituteLogger logger, Queue<SubstituteLoggingEvent> eventQueue) -
Method Summary
Modifier 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.LegacyAbstractLogger
isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabledMethods inherited from class org.slf4j.helpers.AbstractLogger
debug, 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.slf4j.Logger
atDebug, atError, atInfo, atLevel, atTrace, atWarn, isEnabledForLevel, makeLoggingEventBuilder
-
Constructor Details
-
EventRecordingLogger
-
-
Method Details
-
getName
Description copied from interface:LoggerReturn the name of thisLoggerinstance.- Specified by:
getNamein interfaceLogger- Overrides:
getNamein classAbstractLogger- Returns:
- name of this logger instance
-
isTraceEnabled
Description 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.
-
isDebugEnabled
Description 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.
-
isInfoEnabled
Description 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.
-
isWarnEnabled
Description 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.
-
isErrorEnabled
Description 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.
-
handleNormalizedLoggingCall
protected 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 classAbstractLogger- Parameters:
level- the SLF4J level for this eventmarker- The marker to be used for this event, may be null.msg- The message pattern which will be parsed and formattedargs- the array of arguments to be formatted, may be nullthrowable- The exception whose stack trace should be logged, may be null
-
getFullyQualifiedCallerName
- Specified by:
getFullyQualifiedCallerNamein classAbstractLogger
-