geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Bartel <j...@mortbay.com>
Subject [web deployment] Http acess logging integrated
Date Sat, 22 Nov 2003 05:02:52 GMT
FYI:

I have now rounded out the Geronimo web tier with the ability to 
configure http access logging. You can now configure an NCSA-style web 
server request log using Geronimo service descriptors.  I have 
integrated this for Jetty. Here is a snippet from the jetty-service.xml 
file:


<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>

I am awaiting availability of a new Jetty SNAPSHOT jar before this 
functionality can be enabled - for now the access log setup is commented 
out of the jetty-service.xml descriptor. If you want to have a play with 
this before the new snapshot becomes available (hopefully just a matter 
of days) then:

1. either download the org.mortbay.jetty.jar from the nightly
    dev build from http://jetty.mortbay.org/pub/nightly
    or
    checkout Jetty head from http://sourceforge.net/cvs/?group_id=7322
    and build it

2. replace the 
$geronimo.home/target/geronimo-DEV/deploy/jetty/lib/jetty-SNAPSHOT.jar
    with the org.mortbay.jetty.jar

3. uncomment the access log setup in the jetty-service.xml file

4. maven run:main in $geronimo.home

cheers,
Jan


Mime
View raw message