java.lang.Object
dk.cloudcreate.essentials.components.foundation.postgresql.SqlExecutionTimeLogger
All Implemented Interfaces:
org.jdbi.v3.core.statement.SqlLogger

public class SqlExecutionTimeLogger extends Object implements org.jdbi.v3.core.statement.SqlLogger
Log the execution time for SQL statements
  • Constructor Details

    • SqlExecutionTimeLogger

      public SqlExecutionTimeLogger()
  • Method Details

    • logBeforeExecution

      public void logBeforeExecution(org.jdbi.v3.core.statement.StatementContext context)
      Specified by:
      logBeforeExecution in interface org.jdbi.v3.core.statement.SqlLogger
    • logAfterExecution

      public void logAfterExecution(org.jdbi.v3.core.statement.StatementContext context)
      Specified by:
      logAfterExecution in interface org.jdbi.v3.core.statement.SqlLogger
    • logException

      public void logException(org.jdbi.v3.core.statement.StatementContext context, SQLException ex)
      Specified by:
      logException in interface org.jdbi.v3.core.statement.SqlLogger