EventSourceLoggerFactoryExtensions.AddEventSourceLogger 메서드

정의

오버로드

AddEventSourceLogger(ILoggerFactory)

LogLevel.Information 이상에 사용하도록 설정된 이벤트 로거를 추가합니다.Adds an event logger that is enabled for LogLevel.Information or higher.

AddEventSourceLogger(ILoggingBuilder)

'EventSource'라는 이벤트 로거를 팩터리에 추가합니다.Adds an event logger named 'EventSource' to the factory.

AddEventSourceLogger(ILoggerFactory)

경고

이 API는 현재 사용되지 않습니다.

LogLevel.Information 이상에 사용하도록 설정된 이벤트 로거를 추가합니다.Adds an event logger that is enabled for LogLevel.Information or higher.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggerFactory ^ AddEventSourceLogger(Microsoft::Extensions::Logging::ILoggerFactory ^ factory);
[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddEventSourceLogger(this ILoggingBuilder builder).")]
public static Microsoft.Extensions.Logging.ILoggerFactory AddEventSourceLogger (this Microsoft.Extensions.Logging.ILoggerFactory factory);
static member AddEventSourceLogger : Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.Extensions.Logging.ILoggerFactory
<Extension()>
Public Function AddEventSourceLogger (factory As ILoggerFactory) As ILoggerFactory

매개 변수

factory
ILoggerFactory

확장 메서드 인수입니다.The extension method argument.

반환

특성

AddEventSourceLogger(ILoggingBuilder)

'EventSource'라는 이벤트 로거를 팩터리에 추가합니다.Adds an event logger named 'EventSource' to the factory.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggingBuilder ^ AddEventSourceLogger(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder);
public static Microsoft.Extensions.Logging.ILoggingBuilder AddEventSourceLogger (this Microsoft.Extensions.Logging.ILoggingBuilder builder);
static member AddEventSourceLogger : Microsoft.Extensions.Logging.ILoggingBuilder -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function AddEventSourceLogger (builder As ILoggingBuilder) As ILoggingBuilder

매개 변수

builder
ILoggingBuilder

확장 메서드 인수입니다.The extension method argument.

반환

추가 호출을 연결할 수 있도록 하는 ILoggingBuilder입니다.The ILoggingBuilder so that additional calls can be chained.

적용 대상