title: How do you write a full stack trace to the log?
body: <p>I was catching an exception and trying to write the stack trace to the logs like this:</p>
  
  <pre><code>log.warn(e.getMessage());
  </code></pre>
  
  <p>But all it said was</p>
  
  <pre><code>null
  </code></pre>
  
  <p>So I changed it to </p>
  
  <pre><code>log.warn(e.toString());
  </code></pre>
  
  <p>And now it says only</p>
  
  <pre><code>java.lang.NullPointerException
  </code></pre>
  
  <p>How do I write the full stack trace to the log so I can see where this Exception is being generated in the app?</p>