title: Serilog does not write logs to file
body: <p>I have solution where are 5 .net-core projects, one - console application and rest are class library. In class Program in main function I have:</p>
  
  <pre><code>        Log.Logger = new LoggerConfiguration()
              .MinimumLevel.Debug()
              .WriteTo.LiterateConsole()
              .WriteTo.Async(a =&gt; a.RollingFile("logs\\myapp-{Date}.txt",
                  outputTemplate : "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level} {Type}] {Message}{NewLine}{Exception} {SourceContext}"))
              .CreateLogger();
  
           Log.Information("Server starting ...");
  
              //Here I have class which invoke a lot of(6-7) Tasks 
                  NewTask task = new NewTask();
                  task.Start();
              //And I end my Main function with
           Log.CloseAndFlush();
           Console.ReadLine();
  </code></pre>
  
  <p>In my all classes when i catch exceptions I've written:</p>
  
  <pre><code>        catch(Exception e)
          {
              Log.ForContext&lt;ClassName&gt;().Error(e, "Somethign went wrong");
          }
  </code></pre>
  
  <p>In new log I have only "Server starting..." nothing more. What I should to? While I debug I see that my program run lines with <code>catch</code>. Now I have no idea what to do. Maybe someone has similar problem? </p>
  
  <p><strong>EDIT</strong>
  I modeled from here <a href="https://github.com/serilog/serilog/wiki/Getting-Started" rel="nofollow noreferrer">https://github.com/serilog/serilog/wiki/Getting-Started</a></p>