2012/8/20 Ricardo F <ri...@hotmail.com>:
>
> 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

Regarding AccessLogValve:
=====================
rotatable="false"
[http://tomcat.apache.org/tomcat-7.0-doc/config/valve.html#Access_Log_Valve]

Regarding org.apache.juli.FileHandler:
==========================
itsname.rotatable=false
[http://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/juli/FileHandler.html]

or use java.util.logging.FileHandler instead.


Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to