Class SqlExecutionTimeLogger
java.lang.Object
dk.cloudcreate.essentials.components.foundation.postgresql.SqlExecutionTimeLogger
- All Implemented Interfaces:
org.jdbi.v3.core.statement.SqlLogger
Log the execution time for SQL statements
-
Field Summary
Fields inherited from interface org.jdbi.v3.core.statement.SqlLogger
NOP_SQL_LOGGER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidlogAfterExecution(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)
-
Constructor Details
-
SqlExecutionTimeLogger
public SqlExecutionTimeLogger()
-
-
Method Details
-
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
- Specified by:
logExceptionin interfaceorg.jdbi.v3.core.statement.SqlLogger
-