From 614730ef4056185e307518698e75f168663f9525 Mon Sep 17 00:00:00 2001 From: Feng Gao Date: Wed, 18 Aug 2021 03:35:04 +0800 Subject: [PATCH] The FilterLoggingBuilderExtensions public API's (#57485) document doesn't reflect the acutal type. Change it from the ILoggingBuilder to LoggerFilterOptions. Fix #57482 --- .../src/FilterLoggingBuilderExtensions.cs | 28 +++++++++++----------- 1 file changed, 14 insertions(+), 14 deletions(-) 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)); -- 2.7.4