> From: Laura Bartolomé [mailto:la...@secways.com]
> Subject: date and time in log
> 
> when tomcat write errors in stdout it doesn't write date and time...

Tomcat does not write to System.out or System.err (other than some esoteric 
debugging stuff).  The default logging configuration does write to the console, 
but that always includes the date and time, unless you've changed the formatter 
configuration in conf/logging.properties.

If your webapps, are writing to System.out or System.err, that's poor practice 
- you should be using a logging system.  If you want Tomcat to intercept and 
redirect this bad practice, set swallowOutput to true in the <Context> elements 
of interest (or in the global conf/context.xml file).

http://tomcat.apache.org/tomcat-6.0-doc/config/context.html

 - 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