Java: synchronizing standard out and standard error

后端 未结 6 1164
孤城傲影
孤城傲影 2020-12-03 18:38

I have a strange problem and it would be nice if I could solve it. For the debugging purposes (and some other things, as well) I\'m writing a log of a console Java applicati

6条回答
  •  伪装坚强ぢ
    2020-12-03 18:53

    java.lang.System.setErr(java.lang.System.out);

    makes the application use the standard output as error stream.

提交回复
热议问题