Mercurial > hg > human-echolocation-java-webapp
annotate webapp/WEB-INF/web.xml @ 16:33d7bd3c0990
Adding logging capabilities with log4j to the servlet; adding the log4j 1.2 class as well
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Wed, 04 Dec 2013 19:48:02 +0000 |
parents | 02c01c48cec1 |
children |
rev | line source |
---|---|
luis@0 | 1 <?xml version="1.0" encoding="UTF-8"?> |
luis@0 | 2 <web-app xmlns="http://java.sun.com/xml/ns/javaee" |
luis@0 | 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
luis@0 | 4 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee |
luis@0 | 5 http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" |
luis@0 | 6 version="2.5"> |
luis@0 | 7 <servlet> |
luis@13 | 8 <servlet-name>HumanEchoServlet</servlet-name> |
luis@13 | 9 <servlet-class>HumanEchoServlet</servlet-class> |
luis@0 | 10 </servlet> |
luis@16 | 11 |
luis@16 | 12 <servlet> |
luis@16 | 13 <servlet-name>log4j-init</servlet-name> |
luis@16 | 14 <servlet-class>com.AppName.servlets.Log4jInit</servlet-class> |
luis@16 | 15 <init-param> |
luis@16 | 16 <param-name>log4j-init-file</param-name> |
luis@16 | 17 <param-value>WEB-INF/classes/log4j.properties</param-value> |
luis@16 | 18 </init-param> |
luis@16 | 19 <load-on-startup>1</load-on-startup> |
luis@16 | 20 </servlet> |
luis@16 | 21 |
luis@0 | 22 <servlet-mapping> |
luis@13 | 23 <servlet-name>HumanEchoServlet</servlet-name> |
luis@13 | 24 <url-pattern>/HumanEcho</url-pattern> |
luis@0 | 25 </servlet-mapping> |
luis@0 | 26 </web-app> |
luis@16 | 27 |
luis@16 | 28 |
luis@16 | 29 |