title: How to show detail of Exception causes in log files
body: <p>I have a logfile from Tomcat which shows the following error:</p>
  
  <pre><code>Caused by: java.lang.ClassNotFoundException: com.package.MyClass
  at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1858)
  at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1709)
  ... 33 more
  </code></pre>
  
  <p>The upper part of the Stacktrace (removed everything before the cause because it doesn't show the information I need) only shows Spring-internal classes. However, this error comes because someone forgot to report a transitive dependency for the war file... </p>
  
  <p>Is there a way to <strong><em>configure Tomcat</em></strong> to show the hidden stacktrace lines? </p>
  
  <p>Note: <code>exception.getCause().printStacktrace()</code> is not what I am looking for, I want all stacktraces to be printed in detail.</p>