FilterLoggerFactoryExtensions.WithFilter(ILoggerFactory, IFilterLoggerSettings) 메서드

정의

모든 등록된 ILoggerProvider에서 로그 메시지를 필터링하는 일반적인 방법을 제공하는 래핑 로거를 등록합니다.Registers a wrapper logger which provides a common way to filter log messages across all registered ILoggerProviders.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggerFactory ^ WithFilter(Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, Microsoft::Extensions::Logging::IFilterLoggerSettings ^ settings);
public static Microsoft.Extensions.Logging.ILoggerFactory WithFilter (this Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.Extensions.Logging.IFilterLoggerSettings settings);
static member WithFilter : Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Extensions.Logging.IFilterLoggerSettings -> Microsoft.Extensions.Logging.ILoggerFactory
<Extension()>
Public Function WithFilter (loggerFactory As ILoggerFactory, settings As IFilterLoggerSettings) As ILoggerFactory

매개 변수

loggerFactory
ILoggerFactory

로거 팩터리입니다.The logger factory.

settings
IFilterLoggerSettings

모든 등록된 로거 공급자에 적용되는 필터 설정입니다.The filter settings which get applied to all registered logger providers.

반환

모든 등록된 로거 공급자에서 일반 필터링을 제공하는 래핑된 ILoggerFactory입니다.A wrapped ILoggerFactory which provides common filtering across all registered logger providers. 을 선택합니다..

적용 대상