Is there any way to send the stdout of a Process to SLF4J?
<p>I'm essentially doing the following:</p>

<pre><code>Process process = new ProcessBuilder().command( ... ).start();
InputStream stdout = process.getInputStream();
LoggerFactory.getLogger( this.class ).debug...?
</code></pre>

<p>Is there any way to write the <code>InputStream</code> to the logger so that it's managed by my logging settings? Or is there another approach I should take to capture the process output?</p>

<p><strong>update</strong>: I've rewritten this because I just realized I had read the <code>Process/ProcessBuilder</code> API wrong and that <code>getInputStream()</code> is STDOUT</p>

<p><strong>update 2</strong> Ideally the way that this would be achieved would allow me to process both stdout/stderr as they come (line at a time) and not some time later.</p>