How can I use Logback to capture System.out messages in a Java program?
For example, I would like to use this code:
System.out.println("test: console out to file instead");
... and output it to a file.
Can this be done using the logback.xml configuration file?
source
share