Module org.slf4j

Class EventRecodingLogger

All Implemented Interfaces:
Serializable, Logger

public class EventRecodingLogger extends LegacyAbstractLogger
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:
Serialized Form
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Description copied from interface: Logger
      Return the name of this Logger instance.
      Specified by:
      getName in interface Logger
      Overrides:
      getName in class AbstractLogger
      Returns:
      name of this logger instance
    • isTraceEnabled

      public boolean 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

      public boolean 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

      public boolean 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

      public boolean 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

      public boolean 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 class AbstractLogger
    • getFullyQualifiedCallerName

      protected String getFullyQualifiedCallerName()
      Specified by:
      getFullyQualifiedCallerName in class AbstractLogger