EventLoggerFactoryExtensions.AddEventLog Yöntem

Tanım

Aşırı Yüklemeler

AddEventLog(ILoggingBuilder)

Fabrikaya 'EventLog' adlı bir olay günlükçü ekler.

AddEventLog(ILoggingBuilder, EventLogSettings)

Olay günlükçü ekler. Belirli LogLevelsn için günlüğe kaydetmeyi etkinleştirmek için kullanınsettings.

AddEventLog(ILoggingBuilder, Action<EventLogSettings>)

Olay günlükçü ekler. Belirli LogLevelsn için günlüğe kaydetmeyi etkinleştirmek için kullanınconfigure.

AddEventLog(ILoggingBuilder)

Kaynak:
EventLoggerFactoryExtensions.cs
Kaynak:
EventLoggerFactoryExtensions.cs
Kaynak:
EventLoggerFactoryExtensions.cs

Fabrikaya 'EventLog' adlı bir olay günlükçü ekler.

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

Parametreler

builder
ILoggingBuilder

Uzantı yöntemi bağımsız değişkeni.

Döndürülenler

ILoggingBuilder böylece ek çağrılar zincirlenebilir.

Şunlara uygulanır

AddEventLog(ILoggingBuilder, EventLogSettings)

Kaynak:
EventLoggerFactoryExtensions.cs
Kaynak:
EventLoggerFactoryExtensions.cs
Kaynak:
EventLoggerFactoryExtensions.cs

Olay günlükçü ekler. Belirli LogLevelsn için günlüğe kaydetmeyi etkinleştirmek için kullanınsettings.

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

Parametreler

builder
ILoggingBuilder

Uzantı yöntemi bağımsız değişkeni.

Döndürülenler

ILoggingBuilder böylece ek çağrılar zincirlenebilir.

Şunlara uygulanır

AddEventLog(ILoggingBuilder, Action<EventLogSettings>)

Kaynak:
EventLoggerFactoryExtensions.cs
Kaynak:
EventLoggerFactoryExtensions.cs
Kaynak:
EventLoggerFactoryExtensions.cs

Olay günlükçü ekler. Belirli LogLevelsn için günlüğe kaydetmeyi etkinleştirmek için kullanınconfigure.

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

Parametreler

builder
ILoggingBuilder

Uzantı yöntemi bağımsız değişkeni.

configure
Action<EventLogSettings>

öğesini yapılandırmak için bir EventLogSettingstemsilci.

Döndürülenler

ILoggingBuilder böylece ek çağrılar zincirlenebilir.

Şunlara uygulanır