geronimo-dev mailing list archives

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

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 

<mbean code="org.apache.geronimo.web.jetty.JettyWebAccessLog"
    name="jetty:role=WebAccessLog, instance=1">
    <attribute name="LogLocation" type="">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>

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
    checkout Jetty head from
    and build it

2. replace the 
    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


View raw message