title: Redirect System.out.println to Log4J, while keeping class name information
body: <p>I have some libraries that are calling System.out.println on me, I'd like to redirect them through log4j or commons logging. But in particular I'd like to keep the fully-qualified-classname so I know what component generated the logs.</p>
  
  <p>Is there a nice, orderly way to accomplish this?</p>
  
  <hr>
  
  <p><strong>UPDATE: After accomplishing this I posted the code here:</strong>
  <br>
  <a href="http://www.bukisa.com/articles/487009_java-how-to-redirect-stderr-and-stdout-to-commons-logging-with-the-calling-class" rel="nofollow">http://www.bukisa.com/articles/487009_java-how-to-redirect-stderr-and-stdout-to-commons-logging-with-the-calling-class</a></p>