log4j 2 - configuration issue

前端 未结 12 735
执笔经年
执笔经年 2020-12-10 12:34

I am trying to configure log4j 2.0 to report logs.

My config is saved as log4j2.xml and this is its content:

  

        
12条回答
  •  攒了一身酷
    2020-12-10 12:59

    I had the problem, I tried some solutions, but only this worked to me:

    Go to web.xml, and add this parameter:

    
        log4jConfiguration
        log4j2.xml
    
    

提交回复
热议问题