Hi to everyone I have to disable log information from com.zaxxer.hikari.pool.HikariPool
. I've tried with
Logger.getLogger("com.zaxxer.hikari.pool.HikariPool").setLevel(Level.OFF)
and with <Logger name ="com.zaxxer.hikari.pool.HikariPool" level="OFF"/>
in my log4j2.xml file
But I still see Debug message like this
14:19:47.557 [HikariPool-1 connection adder] DEBUG com.zaxxer.hikari.pool.HikariPool - HikariPool-1
Can anyone help me?
I solved my problem creating "logback.xml" file with this code:
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<!-- encoders are assigned the type
ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
<encoder>
<pattern>%d{HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<root level="info">
<appender-ref ref="STDOUT" />
</root>
</configuration>
Try <Logger name ="com.zaxxer.hikari" level="OFF"/>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.