From: Feng Gao Date: Tue, 17 Aug 2021 19:35:04 +0000 (+0800) Subject: The FilterLoggingBuilderExtensions public API's (#57485) X-Git-Tag: accepted/tizen/unified/20220110.054933~307 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=614730ef4056185e307518698e75f168663f9525;p=platform%2Fupstream%2Fdotnet%2Fruntime.git The FilterLoggingBuilderExtensions public API's (#57485) document doesn't reflect the acutal type. Change it from the ILoggingBuilder to LoggerFilterOptions. Fix #57482 --- diff --git a/src/libraries/Microsoft.Extensions.Logging/src/FilterLoggingBuilderExtensions.cs b/src/libraries/Microsoft.Extensions.Logging/src/FilterLoggingBuilderExtensions.cs index 2e67636..debd198 100644 --- a/src/libraries/Microsoft.Extensions.Logging/src/FilterLoggingBuilderExtensions.cs +++ b/src/libraries/Microsoft.Extensions.Logging/src/FilterLoggingBuilderExtensions.cs @@ -112,69 +112,69 @@ namespace Microsoft.Extensions.Logging /// /// Adds a log filter to the factory. /// - /// The to add the filter to. + /// The to add the filter to. /// The filter function to apply. - /// The so that additional calls can be chained. + /// The so that additional calls can be chained. public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, Func categoryLevelFilter) => AddRule(builder, filter: (type, name, level) => categoryLevelFilter(name, level)); /// /// Adds a log filter for the given . /// - /// The to add the filter to. + /// The to add the filter to. /// The filter function to apply. /// The which this filter will be added for. - /// The so that additional calls can be chained. + /// The so that additional calls can be chained. public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, Func categoryLevelFilter) where T : ILoggerProvider => AddRule(builder, type: typeof(T).FullName, filter: (type, name, level) => categoryLevelFilter(name, level)); /// /// Adds a log filter to the factory. /// - /// The to add the filter to. + /// The to add the filter to. /// The filter function to apply. - /// The so that additional calls can be chained. + /// The so that additional calls can be chained. public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, Func levelFilter) => AddRule(builder, filter: (type, name, level) => levelFilter(level)); /// /// Adds a log filter for the given . /// - /// The to add the filter to. + /// The to add the filter to. /// The filter function to apply. /// The which this filter will be added for. - /// The so that additional calls can be chained. + /// The so that additional calls can be chained. public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, Func levelFilter) where T : ILoggerProvider => AddRule(builder, type: typeof(T).FullName, filter: (type, name, level) => levelFilter(level)); /// /// Adds a log filter to the factory. /// - /// The to add the filter to. + /// The to add the filter to. /// The category to filter. /// The level to filter. - /// The so that additional calls can be chained. + /// The so that additional calls can be chained. public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, string category, LogLevel level) => AddRule(builder, category: category, level: level); /// /// Adds a log filter for the given . /// - /// The to add the filter to. + /// The to add the filter to. /// The category to filter. /// The level to filter. /// The which this filter will be added for. - /// The so that additional calls can be chained. + /// The so that additional calls can be chained. public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, string category, LogLevel level) where T : ILoggerProvider => AddRule(builder, type: typeof(T).FullName, category: category, level: level); /// /// Adds a log filter to the factory. /// - /// The to add the filter to. + /// The to add the filter to. /// The category to filter. /// The filter function to apply. - /// The so that additional calls can be chained. + /// The so that additional calls can be chained. public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, string category, Func levelFilter) => AddRule(builder, category: category, filter: (type, name, level) => levelFilter(level));