redirecting a java web start app logs to a file

前端 未结 1 1915
傲寒
傲寒 2020-12-21 12:24

We have an application that we access over Java web start internally at our office.

all the logs produced by the app are displayed in Firefox\'s console.

wha

相关标签:
1条回答
  • 2020-12-21 13:12

    I figured using the System.setOut method could be used to redirect all System.out.println() outputs to a file.

    Hence, this could be used in my app :

            System.setOut(new PrintStream("C:\\log.txt"));
    
    0 讨论(0)
提交回复
热议问题