Class SqlLogger

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

public class SqlLogger extends jp.ecuacion.lib.core.logging.internal.EclibLogger
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
  • Field Summary

    Fields inherited from class jp.ecuacion.lib.core.logging.internal.EclibLogger

    internalLogger
  • 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.EclibLogger

    log

    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(@RequireNonnull String message)
      Logs message with "trace" loglevel.
      Parameters:
      message - message to log. Cannot be null.
    • debug

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