You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "rziegler72@yahoo.com" <rz...@yahoo.com> on 2005/02/17 17:40:37 UTC

Split catalina.out to separate stdout and stderr?

Hi,

I'm runnning Tomcat 4.1.30 on Linux/Unix.  I'm trying to get our app's debug info from
catalina.out split into 2 separate stderr and stdout files.  I'm able to do this in Windows via
the "System.out File" and "System.err File" registry parameters, but I can't find a way to do this
in Linux/Unix.

I've tried a couple things that haven't worked:

(A) Changing catalina.sh from

>> "$CATALINA_BASE"/logs/catalina.out 2>&1 &
 to
2>> "$CATALINA_BASE"/logs/catalina.err 1>> "$CATALINA_BASE"/logs/catalina.out &

(B) JAVA_OPTS and CATALINA_OPTS with -Dstdout= and -Dstderr= params
(C) JAVA_OPTS and CATALINA_OPTS with -outfile= and -errfile= params


Is there any easy way to do this?

Thanks in advance for any assistance.
~RZ



		
__________________________________ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 

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


Re: Split catalina.out to separate stdout and stderr?

Posted by John Smith <cm...@acedsl.com>.
 Or just read and undrestand the startup parameters and go

 catalina run > out.txt

----- Original Message -----
From: "Tim Funk" <fu...@joedog.org>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Thursday, February 17, 2005 11:43 AM
Subject: Re: Split catalina.out to separate stdout and stderr?


> You'd need to write a listener (or other code) which calls the appropriate
> System calls to set out and err in the JVM.
>
> -Tim
>
> rziegler72@yahoo.com wrote:
> > Hi,
> >
> > I'm runnning Tomcat 4.1.30 on Linux/Unix.  I'm trying to get our app's
debug info from
> > catalina.out split into 2 separate stderr and stdout files.  I'm able to
do this in Windows via
> > the "System.out File" and "System.err File" registry parameters, but I
can't find a way to do this
> > in Linux/Unix.
> >
> > I've tried a couple things that haven't worked:
> >
> > (A) Changing catalina.sh from
> >
> >
> >>>"$CATALINA_BASE"/logs/catalina.out 2>&1 &
> >
> >  to
> > 2>> "$CATALINA_BASE"/logs/catalina.err 1>>
"$CATALINA_BASE"/logs/catalina.out &
> >
> > (B) JAVA_OPTS and CATALINA_OPTS with -Dstdout= and -Dstderr= params
> > (C) JAVA_OPTS and CATALINA_OPTS with -outfile= and -errfile= params
> >
> >
> > Is there any easy way to do this?
> >
> > Thanks in advance for any assistance.
> > ~RZ
> >
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Take Yahoo! Mail with you! Get it on your mobile phone.
> > http://mobile.yahoo.com/maildemo
> >
> > ---------------------------------------------------------------------
> > 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: Split catalina.out to separate stdout and stderr?

Posted by Tim Funk <fu...@joedog.org>.
You'd need to write a listener (or other code) which calls the appropriate 
System calls to set out and err in the JVM.

-Tim

rziegler72@yahoo.com wrote:
> Hi,
> 
> I'm runnning Tomcat 4.1.30 on Linux/Unix.  I'm trying to get our app's debug info from
> catalina.out split into 2 separate stderr and stdout files.  I'm able to do this in Windows via
> the "System.out File" and "System.err File" registry parameters, but I can't find a way to do this
> in Linux/Unix.
> 
> I've tried a couple things that haven't worked:
> 
> (A) Changing catalina.sh from
> 
> 
>>>"$CATALINA_BASE"/logs/catalina.out 2>&1 &
> 
>  to
> 2>> "$CATALINA_BASE"/logs/catalina.err 1>> "$CATALINA_BASE"/logs/catalina.out &
> 
> (B) JAVA_OPTS and CATALINA_OPTS with -Dstdout= and -Dstderr= params
> (C) JAVA_OPTS and CATALINA_OPTS with -outfile= and -errfile= params
> 
> 
> Is there any easy way to do this?
> 
> Thanks in advance for any assistance.
> ~RZ
> 
> 
> 
> 		
> __________________________________ 
> Do you Yahoo!? 
> Take Yahoo! Mail with you! Get it on your mobile phone. 
> http://mobile.yahoo.com/maildemo 
> 
> ---------------------------------------------------------------------
> 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