sl4j/logback under weblogic

前端 未结 5 1848
情话喂你
情话喂你 2020-12-31 08:23

I\'m trying to configure sl4j/logback under Weblogic12. I deploy ear file, which has war file, which has WEB-INF\\classes\\logback.xml
Here is the config:

5条回答
  •  抹茶落季
    2020-12-31 08:42

    Note: Also this question is already answered, I want to add that you should also add prefer-application-resources.

    Answer: Add a file called META-INF/weblogic-application.xml to your ear, containing both prefer-application-packages and prefer-application-resources!

    
    
    
        
        
            org.slf4j.*
        
    
    
        
        
        
        
            org/slf4j/impl/StaticLoggerBinder.class
        
    
    
    
    

提交回复
热议问题