PrintStream myout = new PrintStream(new FileOutputStream(new File("D:/log.log")));
System.setOut(myout);
System.setErr(myout);
Java System.out 重定向到文件
最新推荐文章于 2023-10-20 19:26:35 发布
PrintStream myout = new PrintStream(new FileOutputStream(new File("D:/log.log")));
System.setOut(myout);
System.setErr(myout);