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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to