I have been trying to intercept all the System.out and System.err request
given in the tomcat. Here is the excerpts of the Code.
I wrote a class WSPrintStream that extends PrintStream and overided the
commonly used println(..) statements.
/*
* WSPrintStream.java
*
* Created on March 31,
--- Anil [EMAIL PROTECTED] wrote:
I have been trying to intercept all the System.out
and System.err request
given in the tomcat. Here is the excerpts of the
Code.
I wrote a class WSPrintStream that extends
PrintStream and overided the
commonly used println(..) statements.
Thank you, Dr Mel Martinez,
I have tried it and it did work.
I believe you have asked aw why I have gone for this solution. Well I was
trying to capture all the messages sent to the Std.output stream in tomcat.
The code has snippets like
java.io.PrintStream pw = new