log4j:WARN No appenders could be found for logger in web.xml

后端 未结 12 1879
温柔的废话
温柔的废话 2020-11-30 21:54

I already put the log4jConfigLocation in web.xml, but I still get the following warning:

log4j:WARN No appenders cou         


        
12条回答
  •  有刺的猬
    2020-11-30 22:28

    I had the same problem . Same configuration settings and same warning message . What worked for me was : Changing the order of the entries .

    • I put the entries for the log configuration [ the context param and the listener ] on the top of the file [ before the entry for the applicationContext.xml ] and it worked .

    The Order matters , i guess .

提交回复
热议问题