You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by sting sting <zs...@hotmail.com> on 2003/03/25 20:29:58 UTC

Reirecting System.out from Tomcat4

Hello,

I am developing a web application with Tomcat on linux.
(I also use log4j for logging(
I noticed that the System.out.println("...") messages of Tomcat4 goes to 
catalina.out;
The probelm is that I use a third party classes
which unfortunately also contain System.out.println() methods;
I want that  these non-tomcat System.out.println("...")
messages will be routed to a different file than catalina.out
(or not logged at all - they in fact a little redunadant)
I cannot change that because it's not
classes we developed and we do not have access to the  code, only to the 
jar).
Can I somehow redirect the output of these System.out.println to a different 
log file?

I looked and searched and tried many things but non helped;
I tried to call Systen.setOutput(New PrintStream(...)) before
calling methods of this third party jar but it did not cahnge anything:
All went to catalina.out
Any help will be appreciated

regards,
sting








_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail


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