You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Sanjay Bahal <sb...@yahoo.com> on 2002/03/22 16:57:38 UTC

Re: how to redirect System.out, or a relevant link please

Try this:
System.setOut(new PrintStream(new
FileOutputStream(filename,true)));
		            System.setErr(new PrintStream(new
FileOutputStream(filename,true)));
--- Leila Lappin <ga...@comcast.net> wrote:
> Hello everyone,
> 
> Could someone please send me a link to find
> information on redirecting system.out and
> system.err.  I've been to
> http://www.jguru.com/faq/view.jsp?EID=302980 they
> suggested reading the relevant discussion on the
> archived mailing list
>
http://mikal.org/interests/java/tomcat/archive/search?start=60&search=how+to+redirect
> ).  I'm still reading through and haven't found the
> answer.
> 
> I've setup <Logger> tag in server.xml and it points
> to org.apache.catalina.logger.FileLogger. I get all
> messages generated by tomcat but nothing from my own
> diagnostics.  
>    
> I'm using tomcat-4.0.2 on Redhat 7.2.
> 
> thanks in advance for your help.
> Leila
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards�
http://movies.yahoo.com/

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>