title: Serilog not writing to file with .NET Core 2.2
body: <p>P.S.  The code below works fine.  The problem was between the monitor and the chair.  Answer by @jpgrassi sent me in the right direction to resolve it.</p>
  
  <p>I have the following in program.cs:</p>
  
  <pre><code>public class Program {
      public static void Main(string[] args) {
          CreateWebHostBuilder(args).Build().Run();
      }
  
      public static IWebHostBuilder CreateWebHostBuilder(string[] args) =&gt;
          WebHost.CreateDefaultBuilder(args)
              .UseSerilog((ctx, config) =&gt; { config.ReadFrom.Configuration(ctx.Configuration); })
              .UseStartup&lt;Startup&gt;();
  
  }
  </code></pre>
  
  <p>And in appsettings.json:</p>
  
  <pre><code>{
    "Serilog": {
  
      "MinimumLevel": {
        "Default": "Information",
        "Override": {
          "Default": "Information",
          "Microsoft": "Information",
          "System": "Information"
        }
      },
  
      "WriteTo": [
        {
          "Name": "RollingFile",
          "Args": {
            "pathFormat": "log-{Date}.txt",
          }
        }
      ]
    },
  
    "AllowedHosts": "*"
  }
  </code></pre>
  
  <p>In the controller, I write out a log <code>_logger.LogWarning("foo");</code>, but the file is not written out anywhere, there aren't any error that I can see.  </p>
  
  <p>I've imported following packages from Nuget: Serilog, Serilog.AspNetCore, Serilog.Settings.Configuration, Serilog.Sinks.RollingFile.</p>
  
  <p>What am I missing?</p>