internal void RefreshCache() { if(!Settings.EnableLogging) { Cache = new ConfigurationCache(allowAll: false); return; } this.Cache = new ConfigurationCache(); Cache.ShouldProcessCriticals = ShouldProcessSeverityLevel(KnownSeverityLevels.Critical); Cache.ShouldProcessErrors = ShouldProcessSeverityLevel(KnownSeverityLevels.Error); Cache.ShouldProcessWarnings = ShouldProcessSeverityLevel(KnownSeverityLevels.Warning); Cache.ShouldProcessInformation = ShouldProcessSeverityLevel(KnownSeverityLevels.Information); Cache.ShouldProcessVerbose = ShouldProcessSeverityLevel(KnownSeverityLevels.Verbose); }
public DiagnosticsConfigurationWithCache(ConfigurationCache cache) { this.Cache = cache; }