> From: gaganjoshi007 [mailto:gagan.joshi...@gmail.com]
> Subject: datetime missing in stdout log file
> 
> I am having multiple project on tomcat server.
> I get output and error logged in stdout file.

Output and error from what?  Tomcat or your webapps?

> but when error logs in stdout file it done not get 
> the output date and time.

Which likely means you have sloppy code in the webapp simply writing to 
System.out rather than using a logger.

> I like stdout log the error with date and time and the 
> application name before logging the error.

Try enabling swallowOutput in the webapp's <Context> element:
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html

> this will help me to find out which application is throwing error

Better to fix your webapps to use a real logging system rather than just 
dumping to System.out.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


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

Reply via email to