简体   繁体   中英

How do I redirect System.out, System.err to the log file

I want to see my jnlp stdout in a log file. Please suggest. PS I jnlp is run under windows and log4j logger is used

System类有一个setOut()和setErr()方法,可用于更改输出流。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM