title: Difference between logging exception and exception.printstacktrace
body: <p>Could you please clarify me the difference when I just used a logger with </p>
  
  <pre><code> LOGGER.error("Exception is -- " , exception);
  </code></pre>
  
  <p>and </p>
  
  <pre><code> LOGGER.error("Exception is -- " , exception.printStackTrace());
  </code></pre>
  
  <p>Which one is better to get more details about exception?</p>