Class 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:
  • 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
      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:
      getFullyQualifiedCallerName in class AbstractLogger