You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Tarun Gupta <Ta...@digitalmountain.com> on 2011/01/21 20:50:58 UTC

logging in tomcat 6.0.x

Hi ,

  I've got a tomcat 6.0.29 installation with a web app deployed. But, all
the logging is going to the console. How should I redirect the logging to go
to a file.

 

Thanks,

Tarun

 


RE: logging in tomcat 6.0.x

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Tarun Gupta [mailto:Tarun.Gupta@digitalmountain.com] 
> Subject: logging in tomcat 6.0.x

> I've got a tomcat 6.0.29 installation with a web app deployed.
> But, all the logging is going to the console. How should I 
> redirect the logging to go to a file.

A) Fix your webapp not to do its "logging" by calling System.out or System.err but instead use a real logging mechanism.

  - or -

B) Set swallowOutput="true" in the <Context> element for the webapp.

References:
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html
http://tomcat.apache.org/tomcat-6.0-doc/logging.html
http://wiki.apache.org/tomcat/FAQ/Logging

 - 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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org