Interface ActiveJDBCLogger


public interface ActiveJDBCLogger
Implement this interface if you want to completely replace logging behavior with your own.

For more information, refer: Logging.

Author:
igor on 5/20/17.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    log​(org.slf4j.Logger logger, LogLevel logLevel, String log)
     
    void
    log​(org.slf4j.Logger logger, LogLevel logLevel, String log, Object param)
     
    void
    log​(org.slf4j.Logger logger, LogLevel logLevel, String log, Object... param)
     
    void
    log​(org.slf4j.Logger logger, LogLevel logLevel, String log, Object param1, Object param2)
     
    default void
    log​(org.slf4j.Logger logger, LogLevel logLevel, Supplier<String> messageSupplier)
    Default implementation of lazy log message building for backward compatibility.
  • Method Details

    • log

      void log(org.slf4j.Logger logger, LogLevel logLevel, String log)
      Parameters:
      logger - logger instance to use.
      logLevel - suggested log level
      log - content to log
    • log

      default void log(org.slf4j.Logger logger, LogLevel logLevel, Supplier<String> messageSupplier)
      Default implementation of lazy log message building for backward compatibility.
      Parameters:
      logger - logger instance to use.
      logLevel - suggested log level
      messageSupplier - log message supplier.
    • log

      void log(org.slf4j.Logger logger, LogLevel logLevel, String log, Object param)
      Parameters:
      logger - logger instance to use.
      logLevel - suggested log level
      log - content to log
      param - parameters for the log
    • log

      void log(org.slf4j.Logger logger, LogLevel logLevel, String log, Object... param)
      Parameters:
      logger - logger instance to use.
      logLevel - suggested log level
      log - content to log
      param - parameters array for the log
    • log

      void log(org.slf4j.Logger logger, LogLevel logLevel, String log, Object param1, Object param2)
      Parameters:
      logger - logger instance to use.
      logLevel - suggested log level
      log - content to log
      param1 - first parameter for the log
      param2 - second parameter for the log