Disable HikariPool logging

后端 未结 4 731
被撕碎了的回忆
被撕碎了的回忆 2021-02-18 19:20

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         


        
4条回答
  •  佛祖请我去吃肉
    2021-02-18 19:58

    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:

     
    ...
        
        
        
    
    

提交回复
热议问题