You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by pn...@apache.org on 2002/12/18 17:03:24 UTC
cvs commit: jakarta-slide/src/conf/webapp web.xml
pnever 2002/12/18 08:03:24
Modified: src/conf/webapp web.xml
Log:
Added logging filter configuration
Revision Changes Path
1.19 +32 -2 jakarta-slide/src/conf/webapp/web.xml
Index: web.xml
===================================================================
RCS file: /home/cvs/jakarta-slide/src/conf/webapp/web.xml,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- web.xml 5 Aug 2002 11:27:26 -0000 1.18
+++ web.xml 18 Dec 2002 16:03:24 -0000 1.19
@@ -1,7 +1,37 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
-<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
- "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
+<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
+ <!-- Definition and configuration of servlet filters -->
+ <filter>
+ <filter-name>webdavlog</filter-name>
+ <filter-class>org.apache.slide.webdav.filter.LogFilter</filter-class>
+ <init-param>
+ <param-name>logFormat</param-name>
+ <param-value>%t, %p, %m, %s "%l", %i, %u</param-value>
+ <description>Defines the format of a log line. The following placeholders are available: %t=thread-name, %p=principal-name, %m=method-name, %s=status-code, %l=default-status-text, %k=detailed-status-text, %i=elapsed-time, %u=relative-request-uri, %v=request-uri.</description>
+ </init-param>
+ <init-param>
+ <param-name>outputToConsole</param-name>
+ <param-value>true</param-value>
+ <description>If true, output is directed to STDOUT.</description>
+ </init-param>
+ <init-param>
+ <param-name>outputToServletLog</param-name>
+ <param-value>false</param-value>
+ <description>If true, output is directed to the servlet's log file.</description>
+ </init-param>
+ <!--
+ <init-param>
+ <param-name>outputToFile</param-name>
+ <param-value>c:\webdav.log.xml</param-value>
+ <description>If present, output is directed to the specified file.</description>
+ </init-param>
+ -->
+ </filter>
+ <filter-mapping>
+ <filter-name>webdavlog</filter-name>
+ <servlet-name>webdav</servlet-name>
+ </filter-mapping>
<!-- Definition and configuration of Slide's WebDAV servlet. -->
<servlet>
<servlet-name>webdav</servlet-name>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>