You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Eric Wulff <ew...@gmail.com> on 2005/02/16 16:51:15 UTC

stdout -> console instead of catalina.out

I just started logging via log4j and although my question stems from
that, I believe it is more of a Tomcat question.  How can I re-direct
log messages to print to a Linux command window
instead of printing to the file catalina.out, i.e. how do I tell
Tomcat that standard out is the console from which I started Tomcat
in?  I believe the standard output stream is directed to catalina.out
by default.  I have yet to find the answer in the Tomcat docs.

running tomcat 5.0.28 on Linux Fedora Core 2

thx
Eric

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: stdout -> console instead of catalina.out

Posted by Eric Wulff <ew...@gmail.com>.
Great, many thx for the advise.  I also found that using command
'./catalina.sh run' to start Tomcat, as apposed to traditional
'./startup.sh', ensures that stdout goes to the console instead of
catalina.out.

Eric


On Wed, 16 Feb 2005 11:22:20 -0500, David Smith <dn...@cornell.edu> wrote:
> The startup shell script is responsible for redirecting output to
> catalina.out.  remove '> catalina.out' and you should be good to go.
> You could also pipe your output to the 'tee' utility.  See the man pages
> for details.
> 
> --David
> 
> Eric Wulff wrote:
> 
> >I just started logging via log4j and although my question stems from
> >that, I believe it is more of a Tomcat question.  How can I re-direct
> >log messages to print to a Linux command window
> >instead of printing to the file catalina.out, i.e. how do I tell
> >Tomcat that standard out is the console from which I started Tomcat
> >in?  I believe the standard output stream is directed to catalina.out
> >by default.  I have yet to find the answer in the Tomcat docs.
> >
> >running tomcat 5.0.28 on Linux Fedora Core 2
> >
> >thx
> >Eric
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: stdout -> console instead of catalina.out

Posted by David Smith <dn...@cornell.edu>.
The startup shell script is responsible for redirecting output to 
catalina.out.  remove '> catalina.out' and you should be good to go.  
You could also pipe your output to the 'tee' utility.  See the man pages 
for details.

--David

Eric Wulff wrote:

>I just started logging via log4j and although my question stems from
>that, I believe it is more of a Tomcat question.  How can I re-direct
>log messages to print to a Linux command window
>instead of printing to the file catalina.out, i.e. how do I tell
>Tomcat that standard out is the console from which I started Tomcat
>in?  I believe the standard output stream is directed to catalina.out
>by default.  I have yet to find the answer in the Tomcat docs.
>
>running tomcat 5.0.28 on Linux Fedora Core 2
>
>thx
>Eric
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org