private LoggerFilterRule SelectRule(string categoryName) { RuleSelector.Select(_filterOptions, ProviderType, categoryName, out LogLevel? minLevel, out Func <string, string, LogLevel, bool> filter); return(new LoggerFilterRule(ProviderType.FullName, categoryName, minLevel, filter)); }
// Helper to pull out the calculated rule private static LoggerFilterRule SelectAppInsightsRule(LoggerFilterOptions options, string category) { var providerType = typeof(ApplicationInsightsLoggerProvider); var ruleSelector = new LoggerRuleSelector(); ruleSelector.Select(options, providerType, category, out LogLevel? minLevel, out Func <string, string, LogLevel, bool> filter); return(new LoggerFilterRule(providerType.FullName, category, minLevel, filter)); }