Browse Source

Added log4j support to tutorial app

2.0.x
Luke Taylor 18 years ago
parent
commit
743d72ca7b
  1. 5
      samples/tutorial/pom.xml
  2. 9
      samples/tutorial/src/main/webapp/WEB-INF/web.xml

5
samples/tutorial/pom.xml

@ -58,6 +58,11 @@ @@ -58,6 +58,11 @@
<artifactId>standard</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<scope>runtime</scope>
</dependency>
</dependencies>
<build>

9
samples/tutorial/src/main/webapp/WEB-INF/web.xml

@ -23,6 +23,11 @@ @@ -23,6 +23,11 @@
</param-value>
</context-param>
<context-param>
<param-name>log4jConfigLocation</param-name>
<param-value>/WEB-INF/classes/log4j.properties</param-value>
</context-param>
<filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
@ -50,6 +55,10 @@ @@ -50,6 +55,10 @@
<listener-class>org.springframework.security.ui.session.HttpSessionEventPublisher</listener-class>
</listener>
<listener>
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
</listener>
<!--
- Provides core MVC application controller. See contacts-servlet.xml.
-->

Loading…
Cancel
Save