SLF4J + Logback does not log in WildFly

后端 未结 2 1324
别那么骄傲
别那么骄傲 2020-12-01 12:35

I run web application in WildFly 8 and for some reason it does not log. I use SLF4J with LOGBACK. The log file is created on deploy but it is empty. I do not see my log stat

2条回答
  •  栀梦
    栀梦 (楼主)
    2020-12-01 13:05

    Wildfly is using slf4j as defult logging. you have to tell jboss not to use slf4j, i am using log4j. you can do this using below jboss-deployment-structure.xml

    
      
         
         
         
            
        
      
    
    

提交回复
热议问题