You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Steinar Bang <sb...@dod.no> on 2002/11/07 15:46:24 UTC

Avoiding YYYY-MM-DD in log file names (tomcat 4.1.12)

Is it possible to avoid the YYYY-MM-DD in the log file names of tomcat
4.1.12?  I would prefer to just let linux logrotate handle the
rotation of log files.

According to 
  <URL:http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/logger.html>
there is no possibility to configure it away, but perhaps someone
knows of a simple workaround?

Thanx!


- Steinar




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Avoiding YYYY-MM-DD in log file names (tomcat 4.1.12)

Posted by Steinar Bang <sb...@dod.no>.
>>>>> Steinar Bang <sb...@dod.no>:

> Is it possible to avoid the YYYY-MM-DD in the log file names of
> tomcat 4.1.12?  I would prefer to just let linux logrotate handle
> the rotation of log files.

> According to 
>   <URL:http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/logger.html>
> there is no possibility to configure it away, but perhaps someone
> knows of a simple workaround?

The most obvious workaround, ie. subclass
org.apache.catalina.logger.FileLogger and tweak the filename, isn't
possible since FileLogger is a final class.

So I'm left with copying FileLogger, and just chopping away the code I
don't need.

Would a patch to add an extra config parameter to FileLogger, that
would make it not add the date to the file name, have any chance of
being accepted?




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>