On Jan 28, 2014, at 12:05 PM, Vye <v...@vye.me> wrote:

> Hi Tomcat users,

Tomcat 6.0.20 is very old and has known security issues.  See the notices here.

  https://tomcat.apache.org/security-6.html

You’ve been warned.  You should upgrade ASAP.

> 
> I have been unsuccessfully trying to remove the date from catalina’s
> log file name. My ultimate goal is to logrotate the file, which is
> best done when the file name is static.

I’m curious, why are you trying to do this?  The log files are being rotated 
out-of-the-box.  They rotate by date, hence why the date is part of the name.  
Why do you need to rotate them with some other tool?  What doesn’t work about 
the out-of-the-box configuration?

Dan

> According to the FileHandler
> javadoc ( 
> http://tomcat.apache.org/tomcat-6.0-doc/api/org/apache/juli/FileHandler.html
> ) I should be able to configure
> *.org.apache.juli.FileHandler.rotatable in
> ${catalina.base}/conf/logging.properties to toggle date based file
> names, but that is not working.
> 
> It seems like I could fix this by using log4j but I'm not sure if the
> application is logging directly to JULI or commons-logging.
> Regardless, I do not have access to modify it. I would like to
> continue to use the default JULI logger since it is already in use.
> Judging by the docs what I'm trying to do should be possible.
> 
> I’m positive the logging.properties file is being read because when I
> change the prefix and suffix they are applied upon restart. I’ve
> pasted my logging.properties and sample output in this gist:
> http://git.io/99qidw Anyone can wget the raw logging.properties and
> download tomcat from the archives to reproduce.
> 
> I would appreciate it if someone could point me in the right
> direction. I’ve been referencing
> http://tomcat.apache.org/tomcat-6.0-doc/logging.html.
> 
> Tomcat version: http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.20/bin/
> 
> Thank you.
> 
> -- 
> -Vye
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 


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

Reply via email to