title: How to get the Stack trace when logging exceptions with NLog?
body: <p>When I use the default layout with NLog it only prints the name of the exception.
  I've been told that the log4jxmlevent layout doesn't prints nothing about the exception.
  What layout will help me?</p>
  
  <p>Example code:</p>
  
  <pre><code>try
  {
      throw new SystemException();
  }
  catch (Exception ex)
  {
      logger.Error("oi", ex);
  }
  </code></pre>
  
  <p>Default layout output:</p>
  
  <pre><code>2011-01-14 09:14:48.0343|ERROR|ConsoleApplication.Program|oi
  </code></pre>
  
  <p>log4jxmlevent output:</p>
  
  <pre><code>&lt;log4j:event logger="ConsoleApplication.Program"
             level="ERROR"
             timestamp="1295003776872"
             thread="9"&gt;
  &lt;log4j:message&gt;oi&lt;/log4j:message&gt;
  &lt;log4j:NDC /&gt;
  &lt;log4j:locationInfo class="ConsoleApplication.Program"
                      method="Void Main(System.String[])"
                      file="C:\Users\User\Documents\Visual Studio 2010\Projects\ConsoleApplication\ConsoleApplication\Program.cs"
                      line="21" /&gt;
  &lt;nlog:eventSequenceNumber&gt;3&lt;/nlog:eventSequenceNumber&gt;
  &lt;nlog:locationInfo assembly="ConsoleApplication, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" /&gt;
  &lt;log4j:properties&gt;
    &lt;log4j:data name="log4japp"
                value="true" /&gt;
    &lt;log4j:data name="log4jmachinename"
                value="MACHINE" /&gt;
  &lt;/log4j:properties&gt;
  </code></pre>
  
  <p></p>