You need to configure logging for tomcat correctly. Have a look at the
docs. catalina.out is just the fallback in case code outputs to
System.out or logging has not been configured correctly. Also: in
java.util.logging output goes to stdout (console) by default, i.e. will
be redirected by the start script to catalina.out.

Configure logging to use java.util.logging or log4j and you will have
timestamps, log files (rotating if you want) and all the other nice
build-in features.

Look at:

http://tomcat.apache.org/tomcat-5.5-doc/logging.html

Regards,

Rainer

cifroes schrieb:
> Jacob Rhoden wrote:
>> I think either a LifecycleListener or ServletContextListener is what
>> you want, you can detect tomcat startup/shutdown and/or application
>> startup/shutdown
>>
>> http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/catalina/LifecycleListener.html
>>
>>
>>
>> "Let's write a simple application lifecycle event listener that writes
>> a message to the console of the server when the web application is
>> ready to accept requests and when it is going to be removed. Listing 1
>> shows the code for a simple application event listener class."
>> http://www.onjava.com/pub/a/onjava/2001/04/12/listeners.html?page=2
> I'll be using a ServletContextListener, for what I understand the
> timestamp will mark the beginning of the app. As I'm using Axis on top
> of tomcat, the timestamp is even better: it gives me the time when Axis
> is loaded. Tomcat should be ready when that timestamp is printed.
> 
> Many Thanks for all the help Jacob, Leon and Charles!
> 
> -- cifroes
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to