This is perhaps a very simple question. How do i disable Hikari-CP debug logs? In my log file i have lots of these messages
DEBUG [.zaxxer.hikari.pool.HikariPool:] - Before cleanup pool stats HikariPool-0 (total=10, inUse=0, avail=10, waiting=0)
DEBUG [.zaxxer.hikari.pool.HikariPool:] - After cleanup pool stats HikariPool-0 (total=10, inUse=0, avail=10, waiting=0)
and in my log4jConfig.xml:
<logger name="org.zaxxer.hikari">
<level value="error"/>
</logger>
Can someone please tell me what is wrong with the logger configuration?
Thanks!
The class name is displaying in you DEBUG info: DEBUG [.zaxxer.hikari.pool.HikariPool:] - ... here the class name is zaxxer.hikari.pool.HikariPool, Just modify config file as being disaplayed.
I use logback logger, there is a file named logback.xml located in resources folder, to disable HikariPool logging, i write following config:
You can set the levels of Hikari loggers dynamically:
I have tested this on hikariCP 3.4.1 with log4j 1.2.17
The logger name should be
com.zaxxer.hikari
notorg.zaxxer.hikari
.I use log4j properties, simple add these two lines: