EventLoggerFactoryExtensions.AddEventLog Metod

Definition

Överlagringar

Name Description
AddEventLog(ILoggingBuilder)

Lägger till en händelseloggare med namnet "EventLog" i fabriken.

AddEventLog(ILoggingBuilder, EventLogSettings)

Lägger till en händelseloggare. Använd settings för att aktivera loggning för specifika loggnivåer.

AddEventLog(ILoggingBuilder, Action<EventLogSettings>)

Lägger till en händelseloggare. Använd configure för att aktivera loggning för specifika loggnivåer.

AddEventLog(ILoggingBuilder)

Källa:
EventLoggerFactoryExtensions.cs
Källa:
EventLoggerFactoryExtensions.cs
Källa:
EventLoggerFactoryExtensions.cs
Källa:
EventLoggerFactoryExtensions.cs

Lägger till en händelseloggare med namnet "EventLog" i fabriken.

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

Parametrar

builder
ILoggingBuilder

Argumentet för tilläggsmetod.

Returer

ILoggingBuilder att ytterligare anrop kan länkas.

Gäller för

AddEventLog(ILoggingBuilder, EventLogSettings)

Källa:
EventLoggerFactoryExtensions.cs
Källa:
EventLoggerFactoryExtensions.cs
Källa:
EventLoggerFactoryExtensions.cs
Källa:
EventLoggerFactoryExtensions.cs

Lägger till en händelseloggare. Använd settings för att aktivera loggning för specifika loggnivåer.

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

Parametrar

builder
ILoggingBuilder

Argumentet för tilläggsmetod.

Returer

ILoggingBuilder att ytterligare anrop kan länkas.

Gäller för

AddEventLog(ILoggingBuilder, Action<EventLogSettings>)

Källa:
EventLoggerFactoryExtensions.cs
Källa:
EventLoggerFactoryExtensions.cs
Källa:
EventLoggerFactoryExtensions.cs
Källa:
EventLoggerFactoryExtensions.cs

Lägger till en händelseloggare. Använd configure för att aktivera loggning för specifika loggnivåer.

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

Parametrar

builder
ILoggingBuilder

Argumentet för tilläggsmetod.

configure
Action<EventLogSettings>

Ett ombud för att konfigurera EventLogSettings.

Returer

ILoggingBuilder att ytterligare anrop kan länkas.

Gäller för