Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

FW: Server.xml/AccessLog question

Marc X. Schroeder

2004-05-19

Replies:


> Hi,
>
> I need to be able to customize my access_log file which is defined in server.xml. Were using tomcat 4.0.
>
> I have been using
> <Valve className="org.apache.catalina.valves.AccessLogValve"
> directory="c:\logs\tomcat" prefix="localhost_access_log." suffix=".txt"
> pattern="combined"/>
>
> But I also need to be able to track the %v option as well. When I do this
> <Valve className="org.apache.catalina.valves.AccessLogValve"
> directory="c:\logs\tomcat" prefix="localhost_access_log." suffix=".txt"
> pattern="combined %v"/>
>
> I get this logged
> combined dev.csatravelprotection.com
> -or with other configurations -
> "???{???Referer}i" dev.csatravelprotection.com
>
>
> I need to be able to log all of the combined properties and the Local server name to the same log entry. I have tried many combinations with no success. I have also poured over documentation for days before sending this email. Does anyone have any ideas what I'm doing wrong?
>
Also is this the correct email to post questions?



> Regards,
>
> Marc S.
> Web Content Editor
> CSA Travel Protection
>
©2008 junlu.com - Jax Systems, LLC, U.S.A.