You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Christopher Cain <cc...@mhsoftware.com> on 2000/09/08 03:17:27 UTC

Standard out?

Does anyone know where standard out (System.out) or error
(System.err) goes, or if there is any way of affecting the location?

Thanks in advance ...

- Christopher


Re: Standard out?

Posted by Jason Rumney <jr...@att.com>.
Christopher Cain <cc...@mhsoftware.com> writes:

> Does anyone know where standard out (System.out) or error
> (System.err) goes, or if there is any way of affecting the location?

By default they go to the terminal window that Tomcat is started
from. You can use normal shell features (pipes, redirection to files
etc) to affect this, or take a look at System.setErr(stream) and
friends for more sophisticated redirection - but be careful of
threading issues if you do this.


-- 
Jason Rumney <jr...@attlabs.att.com>
AT&T Labs (Redditch, UK)