Hello,
I have tomcat 7.0.26 and I see how the /logs folder grow every day with tons of
logs with the date, like:
catalina.2012-08-20.loghost-manager.2012-08-20.loglocalhost_access_log.2012-08-20.txtlocalhost.2012-08-20.logmanager.2012-08-20.log
How can I remove the date between the name and the file extension for rotate
this files with logrotate?
I have in the end of server.xml: <Valve
className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log." suffix=".txt" pattern="%h %l
%u %t "%r" %s %b" />
and in the top of logging.properties:handlers =
1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler,
3manager.org.apache.juli.FileHandler,
4host-manager.org.apache.juli.FileHandler,
java.util.logging.ConsoleHandler.handlers =
1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
Thanks,