Here is a couple links that should explain the lack of rotation of catalina.out:

1) http://jakarta.apache.org/tomcat/faq/misc.html#catalina.out

        This one is from the tomcat website and is just the question you are asking.  
It says that you should not be using stdout (System.out.println) because you should be 
using a logging package like log4j (good recommendation).

2) http://marc.theaimsgroup.com/?t=105544472600001&r=1&w=2

        As reference by the above link, this one is a thread about rotating 
catalina.out.

Hope this helps,

Andrew Janian

-----Original Message-----
From: David Goodenough [mailto:[EMAIL PROTECTED]
Sent: Friday, September 03, 2004 7:49 AM
To: [EMAIL PROTECTED]
Subject: Rotation of Catalina.out


I am running Tomcat 5.0.27 on a Debian Unstable system
in /usr/local/share/tomcat5.  Under this directory is the logs directory
and that contains lots of localhost_log.yyyy-mm-dd.txt files (one for
each day) but only one catalina.out file.

In server.xml there are two Logger tags:-

      <!-- Global logger unless overridden at lower levels -->
      <Logger className="org.apache.catalina.logger.FileLogger"
              prefix="catalina_log." suffix=".txt"
              timestamp="true"/>

        <Logger className="org.apache.catalina.logger.FileLogger"
                 directory="logs"  prefix="localhost_log." suffix=".txt"
            timestamp="true"/>

and I guess that the latter is responsible for all the daily logs.

The former however is obviously not responsible for the 
catalina.out as the file name is wrong.

So I assume that Catalina.out is coming from
StandardErrLogger and/or StandardOutLogger.  

My question is how to get daily files for Catalina.out?

David

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to