Hi Tomcat developers,
 
I taught AccessLogValve how to display referer and user-agent. Now it can generate full-grown access logs that make traffic analyzers like Webalizer happy.
 
The new codes are %R (referer) and %g (user agent - %u, %u, %a and %A were taken). Use it like this to generate a standard access log:
 
        <Valve className="org.apache.catalina.valves.AccessLogValve"
                 directory="logs"  prefix="access_log." suffix=".txt"
                 pattern="%h %l %u %t &quot;%r&quot; %s %b &quot;%R&quot; &quot;%g&quot;"/>
Would you like to review my code (it's less than 10 lines) and maybe commit my patch to CVS? Who can I send the file to? (I patched against 4.0 b3.)
 
-Stefan
 
<advertisement>
  www.freegle.com - the Freenet search engine
</advertisement>

Reply via email to