janb 2003/11/20 01:11:08
Modified: modules/web/src/deploy/jetty jetty-service.xml
Log:
New web access log functionality added, but commented out awaiting a new
Jetty snapshot jar to make it work.
Revision Changes Path
1.9 +27 -0
incubator-geronimo/modules/web/src/deploy/jetty/jetty-service.xml
Index: jetty-service.xml
===================================================================
RCS file:
/home/cvs/incubator-geronimo/modules/web/src/deploy/jetty/jetty-service.xml,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- jetty-service.xml 17 Nov 2003 08:25:13 -0000 1.8
+++ jetty-service.xml 20 Nov 2003 09:11:08 -0000 1.9
@@ -37,4 +37,31 @@
<attribute name="Contexts">/abc, /def, /geh</attribute>
<depends name="jetty:role=WebContainer"/>
</mbean>
+
+ <!-- ================================================================ -->
+ <!-- Set up an access log -->
+ <!-- NOTE: -->
+ <!-- 1. Jetty will only rollover logs at midnight, so set 24hrs -->
+ <!-- to approximate this, <= 0 disables rollover. -->
+ <!-- 2. Jetty does not support resolution to names of IP addresses -->
+ <!-- 3. buffering attribute is particular to Jetty, set to true -->
+ <!-- to enhance performance -->
+ <!-- 4. LogPattern values are: "common", "extended", or a valid -->
+ <!-- NCSA-style log pattern (see for example: -->
+ <!-- http://httpd.apache.org/docs/logs.html#accesslog -->
+ <!-- ================================================================ -->
+ <!-- COMMENTED OUT PENDING NEW JETTY SNAPSHOT JAR
+ <mbean code="org.apache.geronimo.web.jetty.JettyWebAccessLog"
+ name="jetty:role=WebAccessLog, instance=1">
+ <attribute name="LogLocation" type="java.net.URI">logs</attribute>
+ <attribute name="LogRolloverIntervalHrs">24</attribute>
+ <attribute name="LogRetentionDays">10</attribute>
+ <attribute name="LogPrefix">ncsa_</attribute>
+ <attribute name="LogSuffix">_requests</attribute>
+ <attribute name="Append">true</attribute>
+ <attribute name="Buffering">false</attribute>
+ <attribute name="LogDateFormat">dd/MMM/yyyy:HH:mm:ss
ZZZ</attribute>
+ <attribute name="LogPattern">extended</attribute>
+ </mbean>
+ -->
</components>