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 "%r" %s %b "%R" "%g""/> 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
|
- Re: AccessLogValve improved Stefan Reich
- Re: AccessLogValve improved Jon Stevens