I added the maxDays attribute to the AccessLogValve node of a Tomcat 7 server.xml, but access log files have not been deleted after restarting tomcat or restarting the Linux server. Am I missing something? The AccessLogValve config is:
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs"
prefix="site_access."
suffix=".log"
maxDays="7"
resolveHosts="false"
pattern="%{org.apache.catalina.AccessLog.RemoteAddr}r %l %u" />