Java tomcat - how to remove JDBC debug logs

后端 未结 1 972
误落风尘
误落风尘 2021-01-25 18:31

The following log is constantly thrown to the console:

09:36:53.456 [CloseConnectionsTimer] DEBUG o.s.jdbc.datasource.DataSourceUtils - Fetching JDBC Connection          


        
1条回答
  •  没有蜡笔的小新
    2021-01-25 19:18

    Are you using Logback or Log4J? Do you have any configuration file in your application? Try placing this in src/main/resources/logback.xml:

    
    
    
        
    
        
            
                
                    %d{HH:mm:ss:SSS} | %-5level | %thread | %logger{20} | %msg%n
                
            
        
    
    

    If you already found logback.xml file in your application, just add the line.

    However if you found log4j.xml in the directory above, add this lines to it instead:

    
         
    
    

    0 讨论(0)
提交回复
热议问题