Interface JdbcEventLogger

    • Method Detail

      • log

        void log​(String message)
        Logs an arbitrary message.
      • logConnect

        @Deprecated
        void logConnect​(String dataSource)
        Deprecated.
        since 4.0 connection events are logged by the DataSources using their own logger.
        Logs database connection event using container data source.
      • logConnect

        @Deprecated
        void logConnect​(String url,
                        String userName,
                        String password)
        Deprecated.
        since 4.0 connection events are logged by the DataSources using their own logger.
      • logPoolCreated

        @Deprecated
        void logPoolCreated​(DataSourceInfo dsi)
        Deprecated.
        since 4.0 connection events are logged by the DataSources using their own logger.
      • logConnectSuccess

        @Deprecated
        void logConnectSuccess()
        Deprecated.
        since 4.0 connection events are logged by the DataSources using their own logger.
      • logConnectFailure

        @Deprecated
        void logConnectFailure​(Throwable th)
        Deprecated.
        since 4.0 connection events are logged by the DataSources using their own logger.
      • logSelectCount

        void logSelectCount​(int count,
                            long time)
      • logSelectCount

        void logSelectCount​(int count,
                            long time,
                            String sql)
        Parameters:
        count - of selected rows
        time - (milliseconds) time query took to run
        sql - SQL that was executed, printed when time exceeds timeThreshold
        Since:
        4.0
      • logUpdateCount

        void logUpdateCount​(int count)
      • logBeginTransaction

        void logBeginTransaction​(String transactionLabel)
      • logCommitTransaction

        void logCommitTransaction​(String transactionLabel)
      • logRollbackTransaction

        void logRollbackTransaction​(String transactionLabel)
      • logQueryError

        void logQueryError​(Throwable th)
      • isLoggable

        boolean isLoggable()
        Returns true if current thread default log level is high enough to generate output.