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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to