Can't turn off HtmlUnit logging messages

后端 未结 7 2072
悲哀的现实
悲哀的现实 2020-12-28 08:50

I\'m using HtmlUnit to interact with a web page that interacts with the server via Ajax. Soon after the Ajax code starts, HtmlUnit produces these two log messages:

7条回答
  •  没有蜡笔的小新
    2020-12-28 09:20

    If using Spring, spring uses LogBack by default so you can create a logback.xml or logback-test.xml in 'main/resources/' or 'test/resources' folder.

    You can set log level by package like this:

    
        
        
            
                %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
                
            
        
        
            
        
        
        
    
    

提交回复
热议问题