Class UtilLoggingJdbcLogger

java.lang.Object
org.seasar.doma.jdbc.AbstractJdbcLogger<Level>
org.seasar.doma.jdbc.UtilLoggingJdbcLogger
All Implemented Interfaces:
JdbcLogger

public class UtilLoggingJdbcLogger extends AbstractJdbcLogger<Level>
A logger that delegates to Logger.
  • Field Details

    • logger

      protected final Logger logger
  • Constructor Details

    • UtilLoggingJdbcLogger

      public UtilLoggingJdbcLogger()
      Creates an instance.

      The log level is Level.INFO. The logger name is the full qualified name of UtilLoggingJdbcLogger.

    • UtilLoggingJdbcLogger

      public UtilLoggingJdbcLogger(Level level)
      Creates an instance with the specified log level.

      The logger name is the full qualified name of UtilLoggingJdbcLogger.

      Parameters:
      level - the log level
    • UtilLoggingJdbcLogger

      public UtilLoggingJdbcLogger(Level level, Logger logger)
      Creates an instance with the specified log level and logger.
      Parameters:
      level - the log level
      logger - the logger
  • Method Details

    • log

      protected void log(Level level, String callerClassName, String callerMethodName, Throwable throwable, Supplier<String> messageSupplier)
      Description copied from class: AbstractJdbcLogger
      Logs an error or an exception.
      Specified by:
      log in class AbstractJdbcLogger<Level>
      Parameters:
      level - the log level
      callerClassName - the caller class name
      callerMethodName - the caller method name
      throwable - the error or exception
      messageSupplier - the message supplier