Class InstrumentedSqlLogger

  • All Implemented Interfaces:
    org.jdbi.v3.core.statement.SqlLogger

    public class InstrumentedSqlLogger
    extends Object
    implements org.jdbi.v3.core.statement.SqlLogger
    A SqlLogger implementation for JDBI which uses the SQL objects' class names and method names for nanosecond-precision timers.
    • Method Detail

      • 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