title: Why isn't Serilog writing Debug messages even when the level is set to Debug?
body: <p>I wrote the following line to create my logger in a C#/WPF application, but the Debug messages do not show up in the logs.  What am I missing?  I am using serilog.sinks.file version 4.0.0.  The release build produces information level events, but the debug build does not produce debug messages.  I have confirmed that the DEBUG symbol is defined, and I've debugged to confirm that the level is in fact set to debug.</p>
  
  <pre><code>LogEventLevel level = LogEventLevel.Information;
  #if DEBUG
              level = LogEventLevel.Debug;
  #endif
              UsageLogger = new LoggerConfiguration()
                 .Enrich.With(new ThreadIdEnricher())
                 .WriteTo.File("UsageLogging.txt", restrictedToMinimumLevel: level, outputTemplate: LogTemplate, rollingInterval: RollingInterval.Day)
                 .Enrich.With(new ThreadIdEnricher())
                 .WriteTo.Console(restrictedToMinimumLevel: level, outputTemplate: LogTemplate)
                 .Enrich.With(new ThreadIdEnricher())
                  .CreateLogger();
          }
  </code></pre>