title: Capture stdout in log4j/log4net
body: <p>I have a library that writes to stdout in Java.  I would like to capture this output in a log using log4j.  (I didn't write this library, so I have no control over the code inside the library).</p>
  
  <p>Is there an easy way to do this?  Is System.setOut the right approach?  What do I pass to System.setOut?</p>
  
  <p>Also, how would you do this in .NET/C#?</p>