标签:
1、编辑好log4j的配置文件,可以为xml也可以是properties.
2、在web.xml中分别配置context-param标签和spring中log4j配置监听器,如下:
利用spring中的Log4jConfigListener配置log4j
原文地址:http://www.cnblogs.com/java-learning/p/5748410.html