Logging 使用Spring Web App启动Log4jServletContextListener

Logging 使用Spring Web App启动Log4jServletContextListener,logging,log4j,tomcat7,log4j2,Logging,Log4j,Tomcat7,Log4j2,我试图将log4j配置到我的SpringWeb项目中,但不幸的是Log4jServletContextListener没有启动,我不知道为什么 我是按照下面的网址吼叫的: - - 虽然我遵循该链接中的配置,但我的Log4j2没有启动。在控制台上,我看不到下一行: INFO Log4jServletContextListener ensuring that Log4j starts up properly. INFO Log4jServletFilter initialized. 我在To

我试图将log4j配置到我的SpringWeb项目中,但不幸的是Log4jServletContextListener没有启动,我不知道为什么

我是按照下面的网址吼叫的: - -

虽然我遵循该链接中的配置,但我的Log4j2没有启动。在控制台上,我看不到下一行:

INFO  Log4jServletContextListener ensuring that Log4j starts up properly.
INFO  Log4jServletFilter initialized.
我在Tomcat 7.0.59上运行应用程序。你知道这个问题吗


谢谢,;P

我发现了问题…我正在调试模式下运行Tomcat,我的log4j2在文件顶部有以下配置:

  • status=“WARN”
我更改为警告进行调试,log4j2开始工作。在哪里可以找到xml中有关此标记的更多信息