How to redirect System.out to a log file using Logback?
<p>How can I use Logback to capture System.out messages in a Java program?</p>

<p>For example, I would like to use this code:</p>

<pre><code>System.out.println("test: console out to file instead");
</code></pre>

<p>... and capture it's output to a file.</p>

<p>Can this be done using the logback.xml config file?</p>