title: Logging an Exceptions in Java?
body: <p>I am using commons logging in a Java application, and I want to log the exception from the stack trace.</p>
  
  <pre><code>catch( Exception exception ) {
           logger.error( "FailedCreateActivityFunction Exception Occured : " , exception );
           throw new EngineException( getMessage( ERROR_FailedCreateActivityFunction, FunctionName ), exception );
        }
  </code></pre>
  
  <p><strong>Will this throw the exception twice ? If yes how to fix it ?</strong></p>
  
  <p>Whats the difference between using it as this way using <strong>+ exception</strong> instead of <strong>, exception</strong></p>
  
  <pre><code>logger.error( "FailedCreateActivityFunction Exception Occured : " + exception );
  </code></pre>