title: log not printing the full stack trace
body: <p>I am trying to print the whole stack trace in my log file. Here are the sample codes which i have written for various classes. The output of log file is also given. I want the whole stack trace to be printed in log.</p>
  
  <p>First Sample DAO where exception is generated :</p>
  
  <pre><code>public String getPasswordByEmail(String email) throws UserException {
      try {
          beginNewTransaction();
          PreparedStatement stmt = getConnection().prepareStatement(GET_PASSWORD_BY_EMAIL);
          stmt.setString(1, email);
  
          log.debug("PrepareStatement for selecting user password by email " + stmt.toString());
  
          ResultSet rs = stmt.executeQuery();
          if(rs != null) {
              rs.next();
          }
          return rs.getString("password");
      }
      catch(SQLException sqe) {
          throw new UserException("Could not retrieve user details",sqe);
      } catch (JiffieTransactionException jte) {
          throw new UserException("Error while securing the database connection", jte);
      }
  }
  </code></pre>
  
  <p>Sample service class which calls the DAO:</p>
  
  <pre><code>public String getPasswordByEmail(String email) throws UserException{
      UserDAO userDao = new UserDAO();
      return userDao.getPasswordByEmail(email);
  }
  </code></pre>
  
  <p>Sample action class which finally catch and log the exception :</p>
  
  <pre><code> public String sendPasswordToEmail() {
      UserService newService = new UserService();
      String password;
      try {
          password = newService.getPasswordByEmail(email);
      } catch (UserException e) {
  
          log.error("Error in RetrievePasswordAction : "+e);
          addActionError("Email Id not registered");
          return "failure";
      }  /* more codes */
  </code></pre>
  
  <p>Output of log file :</p>
  
  <pre><code>23 Apr 2015 11:40:44,755 [http-bio-9999-exec-3] ERROR RetrievePasswordAction  - Error in RetrievePasswordAction : com.markEffy.aggregator.UserNotFoundException: Email id does not exist 
  </code></pre>
  
  <p>Here is my my log4j.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Configuration status="ERROR"  DLog4jContextSelector="org.apache.logging.log4j.core.async.AsyncLoggerContext    Selector"&gt;
  &lt;Appenders&gt;
  &lt;File name="myFile"  fileName="${sys:catalina.home}/logs/Aggregator.log"&gt;
    &lt;PatternLayout pattern= "%d{dd MMM yyyy HH:mm:ss,SSS} [%t] %-5p %c{1} %X{user} - %m %n %throwable{full} %n"/&gt;
    &lt;/File&gt;
    &lt;/Appenders&gt;
    &lt;!-- &lt;Policies&gt;
      &lt;SizeBasedTriggeringPolicy size="5 KB"/&gt;
    &lt;/Policies&gt; --&gt;
   &lt;!--  &lt;DefaultRolloverStrategy max="0"/&gt;      
  &lt;/RollingRandomAccessFile&gt;
  &lt;Async name="AsyncRollingFile"&gt;
    &lt;AppenderRef ref="RollingFile"/&gt;
  &lt;/Async&gt; --&gt; 
  &lt;Console name="STDOUT" target="SYSTEM_OUT"&gt;
    &lt;PatternLayout pattern="%d %-5p [%t] %C{2} (%F:%L) - %m%n%n"/&gt;
  &lt;/Console&gt;
  
   &lt;Loggers&gt;
   &lt;Logger name="org.apache.log4j.xml" level="debug"&gt;
    &lt;AppenderRef ref="myFile"/&gt;
  &lt;/Logger&gt;
  &lt;Root level="debug"&gt;
    &lt;AppenderRef ref="myFile"/&gt;
  &lt;/Root&gt;
  &lt;/Loggers&gt;
  </code></pre>
  
  <p></p>
  
  <p>I want the whole stack trace to come in log file. any help will be deeply appreciated.</p>