How to get logging info for HikariCP

hikaricp

Solution

It took me a whole day to get this right! Turns out I was using log4j libs only, whereas a needed to include the slf4j libs.

Problem

Using Hibernate 4.3.1, Hikari 2.3.2. I have configured this in the hibernate persistence xml ``` ... <property name="hibernate.hikari.leakDetectionThreshold" value="3000" /> <property name="hibernate.hikari.poolName" value="KikariTest" /> <property name="hibernate.hikari.registerMbeans" value="true" /> ``` And this in my log4j.properties ``` log4j.logger.com.zaxxer.hikari=DEBUG log4j.additivity.com.zaxxer.hikari=false ``` Im not seeing any logging information printed. Any ideas?

Original source