title: Logging SSL Errors on The server side (like javax.net.debug=ssl)
body: <p>I'm trying to get logging information on the server side when a client tries to connect but fails using SSL. </p>
  
  <p>The obvious way to do this is to set the flag <code>-Djavax.net.debug=ssl</code>, but this won't work, because:</p>
  
  <ol>
  <li>it's way too verbose</li>
  <li>any of the modifiers (i.e. <code>-Djavax.net.debug=ssl:record:handshake</code> etc) won't work (this is a known bug <a href="https://bugs.openjdk.java.net/browse/JDK-8044609" rel="nofollow noreferrer">referenced here</a>, yet a lot of sites on the web suggest using these).</li>
  </ol>
  
  <p>I've thought of capturing all Standard output to a file and filtering from there, but there are other messages that are supposed to go to standard out that i'd also catch. </p>
  
  <p>Someone recommended using logger, but i'm not sure if it's possible to capture javax.net.debug output using logger</p>
  
  <p><strong>What I need</strong></p>
  
  <p>Is there any way to output logging information for ssl that isn't 200+ lines per request or</p>
  
  <p>is there any way to get the ssl logging to go to a separate file while leaving everything else unaffected.</p>
  
  <p>Thanks!</p>