Use my log4j under jboss 6

后端 未结 3 774
独厮守ぢ
独厮守ぢ 2020-12-30 13:23

I want to deploy my web application on JBOSS6. The applicaation itself works, but the logging doens\'t. I use log4j and have added a jboss-deployment-structure.xml to my war

3条回答
  •  时光取名叫无心
    2020-12-30 14:09

    I solved my problem doing the following: put jboss-deployment-structure.xml inside web\META-INF with the following in the file

    
    
      
        
            
            
        
      
    
    

    And add this to the startup of the server: -Dorg.jboss.as.logging.per-deployment=false

提交回复
热议问题