Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Get all system messages

843829May 19 2005 — edited May 19 2005
Hello Everyone, I am buiding an application that needs get all system messages. Well I have tried use this code bellow:
printStream = new PrintStream( new BufferedOutputStream( new FileOutputStream("OutFile.txt") ), true ); 		
System.setOut( printStream );
System.setErr( printStream );
And it works very weel to get System.out and System.err messages, but not all messages, for example, if I call another application to run and this application execute a command System.out.println() by yourself this message should be write in OutFile,txt, but it does not. So, I need to know how could I get ALL system messages from my application. Could someone help me?

Thank's in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 16 2005
Added on May 19 2005
15 comments
154 views