Interface ConditionalExceptionLogger

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ConditionalExceptionLogger
For components that support customization of the logging of certain events, users can provide an implementation of this interface to modify the existing logging behavior.
Since:
1.5
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    log(org.apache.commons.logging.Log logger, String message, Throwable t)
    Log the event.
    default void
    logRestart(org.apache.commons.logging.Log logger, org.springframework.core.log.LogMessage message)
    Log a consumer restart; debug by default.
  • Method Details

    • log

      void log(org.apache.commons.logging.Log logger, String message, Throwable t)
      Log the event.
      Parameters:
      logger - the logger to use.
      message - a message that the caller suggests should be included in the log.
      t - a throwable; may be null.
    • logRestart

      default void logRestart(org.apache.commons.logging.Log logger, org.springframework.core.log.LogMessage message)
      Log a consumer restart; debug by default.
      Parameters:
      logger - the logger.
      message - the message.
      Since:
      3.1