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 Summary
Fields inherited from interface org.slf4j.Logger
ROOT_LOGGER_NAME
-
Constructor Summary
ConstructorDescriptionEventRecordingLogger
(SubstituteLogger logger, Queue<SubstituteLoggingEvent> eventQueue) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
getName()
Return the name of thisLogger
instance.protected void
handleNormalizedLoggingCall
(Level level, Marker marker, String msg, Object[] args, Throwable throwable) Given various arguments passed as parameters, perform actual logging.boolean
Is the logger instance enabled for the DEBUG level?boolean
Is the logger instance enabled for the ERROR level?boolean
Is the logger instance enabled for the INFO level?boolean
Is the logger instance enabled for the TRACE level?boolean
Is the logger instance enabled for the WARN level?Methods inherited from class org.slf4j.helpers.LegacyAbstractLogger
isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled
Methods 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, warn
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.slf4j.Logger
atDebug, atError, atInfo, atLevel, atTrace, atWarn, isEnabledForLevel, makeLoggingEventBuilder
-
Constructor Details
-
EventRecordingLogger
-
-
Method Details
-
getName
Description copied from interface:Logger
Return the name of thisLogger
instance.- Specified by:
getName
in interfaceLogger
- Overrides:
getName
in classAbstractLogger
- Returns:
- name of this logger instance
-
isTraceEnabled
Description copied from interface:Logger
Is 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:Logger
Is 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:Logger
Is 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:Logger
Is 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:Logger
Is 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:AbstractLogger
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.
- Specified by:
handleNormalizedLoggingCall
in 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:
getFullyQualifiedCallerName
in classAbstractLogger
-