System.out.println and System.err.println out of order

后端 未结 7 1033
灰色年华
灰色年华 2020-11-22 03:44

My System.out.println() and System.err.println() calls aren\'t being printed to the console in the order I make them.

public static         


        
7条回答
  •  囚心锁ツ
    2020-11-22 04:32

    In Eclipse specifically, you now have, with Eclipse 2019-09 synchronized standard and error output in console.

    The Eclipse Console view currently can not ensure that mixed standard and error output is shown in the same order as it is produced by the running process.

    For Java applications the launch configuration Common Tab now provides an option to merge standard and error output.
    This ensures that standard and error output is shown in the same order it was produced but at the same time disables the individual coloring of error output.

提交回复
热议问题