We are using Hikari connection pool for database connection management in our application. We have configured Hikari CP as a resource in tomcat server.xml. Now due to some issue with HIKARI we require DEBUG level logs generated from HIKARI library. I tried configuring package level logger in conf\log4j.properties, but I am unable to see logs from HIKARI library. Is there any different configuration for logging from libraries used as resource in tomcat server.xml?
Below lines are added in log4j.properties file in conf directory.
log4j.logger.com.zaxxer.hikari=DEBUG,CONSOLE
log4j.additivity.com.zaxxer.hikari=true
Hikari resource configuration in server.xml.
<Resource name="jdbc/abc" auth="Container"
factory="com.zaxxer.hikari.HikariJNDIFactory"
type="javax.sql.DataSource"
minimumIdle="5"
maximumPoolSize="100"
connectionTimeout="300000"
registerMbeans="true"
driverClassName="net.sourceforge.jtds.jdbc.Driver"
jdbcUrl="jdbc:jtds:sqlserver://localhost:1433;databaseName=testdb;domain=dev;sendStringParametersAsUnicode=false;prepareSQL=3"
dataSource.implicitCachingEnabled="true"
dataSource.user=""
dataSource.password=""
connectionTestQuery="Select 1" />
Thanks!