在我的webAPI项目中,我创建了一个从ActionFilterAttribute继承的MyFilterAttribute类。我已经提到了HttpMethod GET的日志消息,如下所示 using System.Net.Http;using System.Web.Http.ControllersThis is a warn log message for a GET method");
我有一个spring应用程序,它已经配置了log4j (通过xml),并且在Tomcat6上运行,在我们通过Maven添加一堆依赖项之前,它工作得很好。在某种程度上,整个应用程序只是开始记录它应该被声明到log4.xml中的部分内容我添加了log4j调试选项来检查log4j是否正在读取配置文件及其值,这是它显示的一部分
log4j: Level value for org.springframework.webLev