You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mufaddal Khumri <mu...@wmotion.com> on 2004/02/05 23:06:37 UTC
Problem adding access log valve.
Hi
I have the following in my server.xml
<!-- Define the default virtual host -->
<Host name="localhost" debug="0" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="localhost_log." suffix=".txt"
timestamp="true"/>
<Logger className="org.apache.catalina.valves.AccessLogValve"
directory="logs/acesslogs"
pattern="%a %A %b %B %h %H %l %m %p %q %r %s %S %t %u
%U %v"
prefix="access_log." suffix=".txt"
timestamp="true"/>
<Context path="/mywebapp" docBase="mywebapp" debug="0"
reloadable="true" crossContext="true"/>
</Host>
I added the AccessLogValve above and now Tomcat does not start? What
did I do wrong?
Tomcat works fine if I remove the accessvalvelog i added above.
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Problem adding access log valve.
Posted by Adam Hardy <ah...@cyberspaceroad.com>.
Hi Mufaddal,
the accesslogvalve config requires a <Valve /> tag, not a <Logger/> tag.
Check the exception messages carefully, normally they tell you. Also
check your config against the documentation - I don't think 'timestamp'
is a valid attribute for <Valve/>
HTH
Adam
On 02/05/2004 11:06 PM Mufaddal Khumri wrote:
> Hi
>
> I have the following in my server.xml
>
> <!-- Define the default virtual host -->
> <Host name="localhost" debug="0" appBase="webapps"
> unpackWARs="true" autoDeploy="true">
>
> <Logger className="org.apache.catalina.logger.FileLogger"
> directory="logs" prefix="localhost_log." suffix=".txt"
> timestamp="true"/>
>
> <Logger className="org.apache.catalina.valves.AccessLogValve"
> directory="logs/acesslogs"
> pattern="%a %A %b %B %h %H %l %m %p %q %r %s %S %t %u
> %U %v"
> prefix="access_log." suffix=".txt"
> timestamp="true"/>
>
> <Context path="/mywebapp" docBase="mywebapp" debug="0"
> reloadable="true" crossContext="true"/>
>
> </Host>
>
> I added the AccessLogValve above and now Tomcat does not start? What did
> I do wrong?
>
> Tomcat works fine if I remove the accessvalvelog i added above.
>
> Thanks.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org