You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Rob Sargent <rs...@xmission.com> on 2021/11/23 16:48:12 UTC
help with Valve
Is the Access Log Valve available for use in an embedded environment?
Re: help with Valve
Posted by Rob Sargent <rs...@xmission.com>.
On 11/23/21 10:55 AM, Mark Thomas wrote:
> On 23/11/2021 17:42, Rob Sargent wrote:
>> Thank you. Does this look like a believable deployment (presuming
>> the property is in fact set)?
>>
>> cat ./localhost/sgs/META-INF/context-valve.xml
>> <Valve
>> className="org.apache.catalina.valves.AccessLogValve"
>> prefix="sgs_access"
>> directory="${SGSSRVR_AccessLogDir}"
>> maxDays=7>
>> </Valve>
>
> No.
>
> A context.xml file placed in META-INF must be called context.xml
>
> The contents needs to look like this:
>
> <Context>
> <Valve
> className="org.apache.catalina.valves.AccessLogValve"
> prefix="sgs_access"
> directory="${SGSSRVR_AccessLogDir}"
> maxDays="7">
> </Valve>
> </Context>
>
>
> Note the quotes on maxDays. The parser might let you get away without
> them but the standard Tomcat config files always use them.
>
Double thank-you.
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: help with Valve
Posted by Mark Thomas <ma...@apache.org>.
On 23/11/2021 17:42, Rob Sargent wrote:
> Thank you. Does this look like a believable deployment (presuming the
> property is in fact set)?
>
> cat ./localhost/sgs/META-INF/context-valve.xml
> <Valve
> className="org.apache.catalina.valves.AccessLogValve"
> prefix="sgs_access"
> directory="${SGSSRVR_AccessLogDir}"
> maxDays=7>
> </Valve>
No.
A context.xml file placed in META-INF must be called context.xml
The contents needs to look like this:
<Context>
<Valve
className="org.apache.catalina.valves.AccessLogValve"
prefix="sgs_access"
directory="${SGSSRVR_AccessLogDir}"
maxDays="7">
</Valve>
</Context>
Note the quotes on maxDays. The parser might let you get away without
them but the standard Tomcat config files always use them.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: help with Valve
Posted by Rob Sargent <rs...@xmission.com>.
Thank you. Does this look like a believable deployment (presuming the
property is in fact set)?
cat ./localhost/sgs/META-INF/context-valve.xml
<Valve
className="org.apache.catalina.valves.AccessLogValve"
prefix="sgs_access"
directory="${SGSSRVR_AccessLogDir}"
maxDays=7>
</Valve>
On 11/23/21 10:38 AM, Mark Thomas wrote:
> On 23/11/2021 16:48, Rob Sargent wrote:
>> Is the Access Log Valve available for use in an embedded environment?
>
> Yes.
>
> Mark
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
Re: help with Valve
Posted by Mark Thomas <ma...@apache.org>.
On 23/11/2021 16:48, Rob Sargent wrote:
> Is the Access Log Valve available for use in an embedded environment?
Yes.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org