title: How to block writes to standard output in java (System.out.println())
body: <p><strong>In Java, how to block code from writing to system out?</strong><br>
  My app calls a 3rd party library that spams logs by issuing numerous System.out.println() calls.<br>
  I don't have legal rights to decompile and patch the library.<br>
  I'm running Websphere 8.5.x</p>
  
  <p>Considered using <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/System.html#setOut-java.io.PrintStream-" rel="nofollow">System.setOut(PrintStream out)</a>, but that will effect the entire process, while I only want to limit the effect to a single thread.</p>