You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by John Smith <cm...@acedsl.com> on 2005/03/03 20:40:12 UTC

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

 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