Class SqlLogger

java.lang.Object
jp.ecuacion.lib.core.logging.internal.AbstractLogger
jp.ecuacion.lib.core.logging.SqlLogger

public class SqlLogger extends jp.ecuacion.lib.core.logging.internal.AbstractLogger
Logs sqls and related info like sql parameters.

Spring framework has it's own sql-logging structure, so this is not used.
this is mainly used by ecuacion-util-jpa.

Available loglevels are as follows:

  • debug: uses for sql log
  • trace: uses for sql-related info
  • Nested Class Summary

    Nested classes/interfaces inherited from class jp.ecuacion.lib.core.logging.internal.AbstractLogger

    jp.ecuacion.lib.core.logging.internal.AbstractLogger.LogLevel
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a new instance with a fixed logger name.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    debug(String message)
    Logs message with "debug" loglevel.
    void
    trace(String message)
    Logs message with "trace" loglevel.

    Methods inherited from class jp.ecuacion.lib.core.logging.internal.AbstractLogger

    log, logThrowable

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SqlLogger

      public SqlLogger()
      Constructs a new instance with a fixed logger name.
  • Method Details

    • trace

      public void trace(@Nonnull String message)
      Logs message with "trace" loglevel.
      Parameters:
      message - message to log. Cannot be null.
    • debug

      public void debug(@Nonnull String message)
      Logs message with "debug" loglevel.
      Parameters:
      message - message to log. Cannot be null.