title: How to tell NLog to log exceptions?
body: <p>Target:</p>
  
  <pre><code>&lt;targets&gt;
      &lt;target name="file" xsi:type="File" layout="${longdate} ${level} ${message} ${exception}" fileName="${basedir}/log.txt" archiveAboveSize="10485760" /&gt;
  &lt;/targets&gt;
  </code></pre>
  
  <p>When I call <code>Logger.Error("some message", e)</code>, where <code>e</code> is some exception object, it only logs the message, not the exception information. I need it to output exception message and stack trace. Any ideas what I am doing wrong?</p>