1

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

user590444
  • 4,252
  • 8
  • 36
  • 43
  • 2
    http://stackoverflow.com/questions/1200175/log4j-redirect-stdout-to-dailyrollingfileappender – DevZer0 Jul 01 '13 at 08:39
  • 1
    Possible Duplicate: **[Redirect System.out and System.err](http://stackoverflow.com/questions/14715748/redirect-system-out-and-system-err)** and **[Redirect System.out and System.err to slf4j](http://stackoverflow.com/questions/11187461/redirect-system-out-and-system-err-to-slf4j)** – Siva Charan Jul 01 '13 at 08:41

1 Answers1

4

The System class has a setOut() and setErr() methods that can be used to change the output stream.

Ammar
  • 2,387
  • 1
  • 14
  • 12