Spring中运用LOG4J

Spring中使用LOG4JSpring中使用LOG4J?? 1.在web.xml中添加上下文初始化参数listenerlistener-classorg

Spring中使用LOG4J

Spring中使用LOG4J??
1.在web.xml中添加上下文初始化参数

<listener>   <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class> </listener> 


3.添加log4j.properties文件
获取日志文件输入路径${path}/WEB-INF??