EventLoggerFactoryExtensions.AddEventLog 메서드

정의

오버로드

AddEventLog(ILoggerFactory)

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

AddEventLog(ILoggingBuilder)

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

AddEventLog(ILoggerFactory, EventLogSettings)

이벤트 로거를 추가합니다.Adds an event logger. settings를 사용하여 특정 LogLevel에 대해 로깅을 사용하도록 설정합니다.Use settings to enable logging for specific LogLevels.

AddEventLog(ILoggerFactory, LogLevel)

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

AddEventLog(ILoggingBuilder, EventLogSettings)

이벤트 로거를 추가합니다.Adds an event logger. settings를 사용하여 특정 LogLevel에 대해 로깅을 사용하도록 설정합니다.Use settings to enable logging for specific LogLevels.

AddEventLog(ILoggingBuilder, Action<EventLogSettings>)

이벤트 로거를 추가합니다.Adds an event logger. configure를 사용하여 특정 LogLevel에 대해 로깅을 사용하도록 설정합니다.Use configure to enable logging for specific LogLevels.

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

매개 변수

factory
ILoggerFactory

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

반환

특성

AddEventLog(ILoggingBuilder)

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

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

매개 변수

builder
ILoggingBuilder

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

반환

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

AddEventLog(ILoggerFactory, EventLogSettings)

경고

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

이벤트 로거를 추가합니다.Adds an event logger. settings를 사용하여 특정 LogLevel에 대해 로깅을 사용하도록 설정합니다.Use settings to enable logging for specific LogLevels.

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

매개 변수

factory
ILoggerFactory

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

반환

특성

AddEventLog(ILoggerFactory, LogLevel)

경고

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

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

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

매개 변수

factory
ILoggerFactory

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

minLevel
LogLevel

로깅할 최소 LogLevel입니다.The minimum LogLevel to be logged

반환

특성

AddEventLog(ILoggingBuilder, EventLogSettings)

이벤트 로거를 추가합니다.Adds an event logger. settings를 사용하여 특정 LogLevel에 대해 로깅을 사용하도록 설정합니다.Use settings to enable logging for specific LogLevels.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggingBuilder ^ AddEventLog(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder, Microsoft::Extensions::Logging::EventLog::EventLogSettings ^ settings);
public static Microsoft.Extensions.Logging.ILoggingBuilder AddEventLog (this Microsoft.Extensions.Logging.ILoggingBuilder builder, Microsoft.Extensions.Logging.EventLog.EventLogSettings settings);
static member AddEventLog : Microsoft.Extensions.Logging.ILoggingBuilder * Microsoft.Extensions.Logging.EventLog.EventLogSettings -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function AddEventLog (builder As ILoggingBuilder, settings As EventLogSettings) As ILoggingBuilder

매개 변수

builder
ILoggingBuilder

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

반환

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

AddEventLog(ILoggingBuilder, Action<EventLogSettings>)

이벤트 로거를 추가합니다.Adds an event logger. configure를 사용하여 특정 LogLevel에 대해 로깅을 사용하도록 설정합니다.Use configure to enable logging for specific LogLevels.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggingBuilder ^ AddEventLog(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder, Action<Microsoft::Extensions::Logging::EventLog::EventLogSettings ^> ^ configure);
public static Microsoft.Extensions.Logging.ILoggingBuilder AddEventLog (this Microsoft.Extensions.Logging.ILoggingBuilder builder, Action<Microsoft.Extensions.Logging.EventLog.EventLogSettings> configure);
static member AddEventLog : Microsoft.Extensions.Logging.ILoggingBuilder * Action<Microsoft.Extensions.Logging.EventLog.EventLogSettings> -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function AddEventLog (builder As ILoggingBuilder, configure As Action(Of EventLogSettings)) As ILoggingBuilder

매개 변수

builder
ILoggingBuilder

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

configure
Action<EventLogSettings>

EventLogSettings를 구성하기 위한 대리자입니다.A delegate to configure the EventLogSettings.

반환

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

적용 대상