title: Different log file for different levels in Serilog
body: <p>I am using serilog and I need to save different log levels to different files ( for example debug-20200708.log for debug level, info-20200798.log for debug level and ...)</p>
  <p>I used below code but it does not work correctly.</p>
  <pre><code>var baseLogger = new Serilog.LoggerConfiguration()
      .WriteTo.Logger(l =&gt; l
          .Filter.ByIncludingOnly(e =&gt; e.Level == LogEventLevel.Fatal))
          .WriteTo.File(
              path: GetLogPath(LogEventLevel.Fatal),
              formatter: formatter)
  
      .WriteTo.Logger(l =&gt; l
          .Filter.ByIncludingOnly(e =&gt; e.Level == LogEventLevel.Error))
          .WriteTo.File(
              path: GetLogPath(LogEventLevel.Error),
              formatter: formatter)
  
      .WriteTo.Logger(l =&gt; l
          .Filter.ByIncludingOnly(e =&gt; e.Level == LogEventLevel.Warning))
          .WriteTo.File(
              path: GetLogPath(LogEventLevel.Warning),
              formatter: formatter)
  
      .WriteTo.Logger(l =&gt; l
          .Filter.ByIncludingOnly(e =&gt; e.Level == LogEventLevel.Information))
          .WriteTo.File(
              path: GetLogPath(LogEventLevel.Information),
              formatter: formatter)
  
      .WriteTo.Logger(l =&gt; l
          .Filter.ByIncludingOnly(e =&gt; e.Level == LogEventLevel.Debug))
          .WriteTo.File(
              path: GetLogPath(LogEventLevel.Debug),
              formatter: formatter)
  
      .WriteTo.Logger(l =&gt; l
          .Filter.ByIncludingOnly(e =&gt; e.Level == LogEventLevel.Verbose))
          .WriteTo.File(
              path: GetLogPath(LogEventLevel.Verbose),
              formatter: formatter)
      .Enrich.FromLogContext();
  
  _logger = baseLogger.CreateLogger();
  </code></pre>