title: How to log an Error without leaking any security info or stacktrace?
body: <p>When I run Fortify Scan on my project i do see that i'm logging the exceptions using</p>
  
  <pre><code>LOGGER.error(e.getMessage(),e);
  </code></pre>
  
  <p>and it says this is not the right way because attckers may get access to this info and get system info from this and plan an attack.</p>
  
  <p>What is the best way to do this?(without compramising on the security)?</p>