org.apache.cayenne.log

## Class FormattedCommonsJdbcEventLogger

- java.lang.Object
- - org.apache.cayenne.log.CommonsJdbcEventLogger
  - - org.apache.cayenne.log.FormattedCommonsJdbcEventLogger

- All Implemented Interfaces:
    JdbcEventLogger

      public class FormattedCommonsJdbcEventLogger
      extends CommonsJdbcEventLogger

  A `CommonsJdbcEventLogger` extension that provides pretty formatting of the logged SQL messages.
  Since:
    3.1

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `FormattedCommonsJdbcEventLogger()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `logQuery(String queryStr, List<DbAttribute> attrs, List<?> params, long time)`

    - ### Methods inherited from class org.apache.cayenne.log.CommonsJdbcEventLogger

      `isLoggable, log, logBeginTransaction, logCommitTransaction, logConnect, logConnect, logConnectFailure, logConnectSuccess, logGeneratedKey, logPoolCreated, logQuery, logQueryError, logQueryParameters, logRollbackTransaction, logSelectCount, logUpdateCount`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### FormattedCommonsJdbcEventLogger

          public FormattedCommonsJdbcEventLogger()

  - ### Method Detail

    - #### logQuery

          public void logQuery(String queryStr,
                               List<DbAttribute> attrs,
                               List<?> params,
                               long time)

      Specified by:
        `logQuery` in interface `JdbcEventLogger`
      Overrides:
        `logQuery` in class `CommonsJdbcEventLogger`

Copyright © 2001–2017 Apache Cayenne. All rights reserved.