Redirect System.out.println
The System class has a setOut and setErr that can be used to change the output stream to, for example, a new PrintStream with a backing File or, in this case, probably another stream which uses your logging subsystem of choice. Keep in mind you may well get yourself into trouble if you ever configure … Read more