java的system.out输出保存到特定文件中

java的system.out输出保存到特定文件中 String path = "G:/2/3/SystemOut.log"; FileOutputStream puts = new FileOutputStream(path,true); PrintStream out = new PrintStream(puts); System.setOut(out);
相关文章
相关标签/搜索