You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Stefan Reich <do...@drjava.de> on 2001/05/06 13:58:13 UTC

AccessLogValve improved

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>

Re: AccessLogValve improved

Posted by Jon Stevens <jo...@latchkey.com>.
on 5/6/01 4:58 AM, "Stefan Reich" <do...@drjava.de> wrote:

> 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

<http://jakarta.apache.org/site/source.html>

-jon

-- 
If you come from a Perl or PHP background, JSP is a way to take
your pain to new levels. --Anonymous
<http://jakarta.apache.org/velocity/ymtd/ymtd.html>