Posted: Tue Apr 24, 2007 5:22 am Post subject: Stdout and stderr in Java Compute node
Newbie
Joined: 24 Apr 2007 Posts: 1
Hello,
I am writing a Java compute node for the first time and need to redirect System.Out.printlns and e.printStackTrace() to a file. I am currently using below code to do this.
FileOutputStream fStream = new FileOutputStream(A_LOG_FILE);
PrintStream pStream = new PrintStream(fStream);
System.setOut(pStream );
System.setErr(pStream );
Is there any other way of doing this e.g. a setting at EG or broker?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum