2009/11/18 04:49 My major/JAVA
 Redirection of the standard output and error streams to log files.

FileOutputStream fos = new FileOutputStream("out.stdout", true);
BufferedOutputStream bos = new BufferedOutputStream(fos);
System.setOut(new PrintStream(bos, true));
fos = new FileOutputStream("error.stderr", true);
bos = new BufferedOutputStream(fos);
System.setErr(new PrintStream(bos, true));

posted by joyoungtae
 <PREV 1 ... 3 4 5 6 7 8 9 10 11 ... 314    NEXT>