title: NLog does not create a log file
body: <p>I am trying to add logging to an application running on mobile device with Windows Mobile 6.1. � .NET Compact framework 3.5. using NLog.</p>
  
  <p>I have the appropriate version of the NLog distribution installed.</p>
  
  <p>However no log files are being created.</p>
  
  <p>Here is my <code>NLog.config</code> file:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
    &lt;targets&gt;
      &lt;target name="logfile" xsi:type="File" fileName=".\Neolant.ASRM.Terminal.log" layout="${longdate}|${level}|${message}|${exception}" autoFlush="true"/&gt;
    &lt;/targets&gt;
    &lt;rules&gt;
      &lt;logger name="*" minlevel="Info" writeTo="logfile" /&gt;
    &lt;/rules&gt;
  &lt;/nlog&gt;
  </code></pre>
  
  <p>And here is the test code I was using:</p>
  
  <pre><code>public static void Main()
  {
      try
      {
          AppDomain.CurrentDomain.UnhandledException += CurrentDomainOnUnhandledException;
          var logger = NLog.LogManager.GetLogger("UpperLevel");
          logger.Info("test test test.");
          try
          {
              throw new Exception("Unexpected!");
          }
          catch (Exception e)
          {
              var logger = NLog.LogManager.GetLogger("UpperLevel");
              logger.WarnException("An exception occured.", e);
          }
          throw new Exception("Suddenly!");           
      }
      finally
      {
          NLog.LogManager.Flush();
      }
  }
  
  private static void CurrentDomainOnUnhandledException(object sender, UnhandledExceptionEventArgs unhandledExceptionEventArgs)
  {
      var logger = NLog.LogManager.GetLogger("UpperLevel");
      logger.FatalException("Application closed due to exception.", unhandledExceptionEventArgs.ExceptionObject as Exception);
      NLog.LogManager.Flush();
  }
  </code></pre>