You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Rhugga <to...@echeeba.com> on 2003/10/14 02:40:53 UTC

Anyway to disable timstamping log files???

Here is my logs/ directory:
catalina2003-10-13.log
localhost2003-10-13.log
localhost_access2003-10-13.log
localhost_admin_log.2003-10-13.txt
se_access.2003-10-13.log

I do not want the timestamp, I want the logs to keep getting appended 
to. I manage the log rotation outside of tomcat using scripts.

Here is my global logger:
       <Logger className="org.apache.catalina.logger.FileLogger"
               prefix="catalina" suffix=".log" timestamp="true"/>

Here is the localhost logger:
         <Logger className="org.apache.catalina.logger.FileLogger"
                 directory="logs"  prefix="localhost" suffix=".log"
                 timestamp="true"/>

Is this configurable? I do not see any options to Logger that do this.

Thx,
CC


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Anyway to disable timstamping log files???

Posted by Tim Funk <fu...@joedog.org>.
The Loggers automatically rotate nightly. You'll need to extend LoggerBase or 
FileLogger to have it not rotate.

-Tim

Rhugga wrote:
> 
> Here is my logs/ directory:
> catalina2003-10-13.log
> localhost2003-10-13.log
> localhost_access2003-10-13.log
> localhost_admin_log.2003-10-13.txt
> se_access.2003-10-13.log
> 
> I do not want the timestamp, I want the logs to keep getting appended 
> to. I manage the log rotation outside of tomcat using scripts.
> 
> Here is my global logger:
>       <Logger className="org.apache.catalina.logger.FileLogger"
>               prefix="catalina" suffix=".log" timestamp="true"/>
> 
> Here is the localhost logger:
>         <Logger className="org.apache.catalina.logger.FileLogger"
>                 directory="logs"  prefix="localhost" suffix=".log"
>                 timestamp="true"/>
> 
> Is this configurable? I do not see any options to Logger that do this.
> 
> Thx,
> CC
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org