title: Enterprise framework logging - ShouldLog not working with SourceLevel filter
body: <p>I'm using EF 5 and am trying to use the ShouldLog method to determine whether a LogEntry will be logged prior to actually logging it. My issue is that ShouldLog always returns true, even if I have a filter in place to exclude certain levels. The filter works and the entries are not logged, but ShouldLog does not appear to work.</p>
  
  <p>I'm configuring my logger like so:</p>
  
  <pre><code>internal static void ConfigureLogging(SourceLevels logLevel)
  {
      var builder = new ConfigurationSourceBuilder();
  
      builder.ConfigureLogging()
          .LogToCategoryNamed("General")
          .WithOptions.SetAsDefaultCategory()
          .SendTo.FlatFile("Main log file")
          .FormatWith(
              new FormatterBuilder()
                  .TextFormatterNamed("Text Formatter")
                  .UsingTemplate("{timestamp(local:MM/dd/yyyy HH:mm:ss.fff)} [{severity}] {message}"))
          .Filter(logLevel) //Setting the source level filter
          .ToFile("log.txt");
  
      var configSource = new DictionaryConfigurationSource();
      builder.UpdateConfigurationWithReplace(configSource);
      EnterpriseLibraryContainer.Current
          = EnterpriseLibraryContainer.CreateDefaultContainer(configSource);
  }
  </code></pre>
  
  <p>And testing it like this:</p>
  
  <pre><code>ConfigureLogging(SourceLevels.Warning); //Do not allow Information level
  
  var logEntry = new LogEntry { Message = "test", Severity = TraceEventType.Information };
  var shouldLog = Logger.Writer.ShouldLog(logEntry);
  Logger.Writer.Write(logEntry);
  </code></pre>
  
  <p>After I run this code the shouldLog variable is true, but no log entry is written. If I pass SourceLevels.Information to the ConfigureLogging method instead I do get an entry written to my log. Am I doing something wrong?</p>