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

后端 未结 12 1916
温柔的废话
温柔的废话 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:31

    If that's the entire log4j.properties file it looks like you're never actually creating a logger. You need a line like:

    log4j.rootLogger=debug,A1
    

提交回复
热议问题