-
Notifications
You must be signed in to change notification settings - Fork 2.9k
JDBC Logging
Brett Wooldridge edited this page Oct 22, 2015
·
3 revisions
HikariCP does not inherently include JDBC logging at this time. This is a conscious decision, not an oversight or undeveloped future roadmap item. Nearly all major database have a JDBC driver capable of logging on its own.
This wiki page documents how to enable logging for common databases.
Example:
jdbcUrl=jdbc:mysql://localhost:3306/simpsons
dataSource.logger=com.mysql.jdbc.log.StandardLogger
dataSource.logSlowQueries=true
dataSource.dumpQueriesOnException=true
A full list of properties is available in the Debugging/Profiling section of the MySQL documentation.