Class SqlExecutionTimeLogger
- 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 Summary
Constructors Constructor Description SqlExecutionTimeLogger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidlogAfterExecution(org.jdbi.v3.core.statement.StatementContext context)voidlogBeforeExecution(org.jdbi.v3.core.statement.StatementContext context)voidlogException(org.jdbi.v3.core.statement.StatementContext context, SQLException ex)
-
-
-
Method Detail
-
logBeforeExecution
public void logBeforeExecution(org.jdbi.v3.core.statement.StatementContext context)
- Specified by:
logBeforeExecutionin interfaceorg.jdbi.v3.core.statement.SqlLogger
-
logAfterExecution
public void logAfterExecution(org.jdbi.v3.core.statement.StatementContext context)
- Specified by:
logAfterExecutionin interfaceorg.jdbi.v3.core.statement.SqlLogger
-
logException
public void logException(org.jdbi.v3.core.statement.StatementContext context, SQLException ex)- Specified by:
logExceptionin interfaceorg.jdbi.v3.core.statement.SqlLogger
-
-