EventLoggerFactoryExtensions.AddEventLog Methode

Definition

Überlädt

AddEventLog(ILoggerFactory)
Veraltet.

Fügt eine Ereignisprotokollierung hinzu, die für LogLevel.Information oder höher aktiviert ist.

AddEventLog(ILoggingBuilder)

Fügt der Factory eine Ereignisprotokollierung mit dem Namen „EventLog“ hinzu.

AddEventLog(ILoggerFactory, EventLogSettings)
Veraltet.

Fügt eine Ereignisprotokollierung hinzu. Verwenden Sie settings, um die Protokollierung für bestimmte LogLevel-Elemente zu aktivieren.

AddEventLog(ILoggerFactory, LogLevel)
Veraltet.

Fügt eine Ereignisprotokollierung hinzu, die für LogLevel-Elemente vom Typ „minLevel“ oder höher aktiviert ist.

AddEventLog(ILoggingBuilder, EventLogSettings)

Fügt eine Ereignisprotokollierung hinzu. Verwenden Sie settings, um die Protokollierung für bestimmte LogLevel-Elemente zu aktivieren.

AddEventLog(ILoggingBuilder, Action<EventLogSettings>)

Fügt eine Ereignisprotokollierung hinzu. Verwenden Sie configure, um die Protokollierung für bestimmte LogLevel-Elemente zu aktivieren.

AddEventLog(ILoggerFactory)

Achtung

This method is obsolete and will be removed in a future version. The recommended alternative is AddEventLog(this ILoggingBuilder builder).

Fügt eine Ereignisprotokollierung hinzu, die für LogLevel.Information oder höher aktiviert ist.

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

Parameter

factory
ILoggerFactory

Das Argument der Erweiterungsmethode.

Gibt zurück

ILoggerFactory
Attribute

Gilt für:

AddEventLog(ILoggingBuilder)

Fügt der Factory eine Ereignisprotokollierung mit dem Namen „EventLog“ hinzu.

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

Parameter

builder
ILoggingBuilder

Das Argument der Erweiterungsmethode.

Gibt zurück

ILoggingBuilder

Die ILoggingBuilder-Schnittstelle zur Verkettung weiterer Aufrufe.

Gilt für:

AddEventLog(ILoggerFactory, EventLogSettings)

Achtung

This method is obsolete and will be removed in a future version. The recommended alternative is AddEventLog(this ILoggingBuilder builder).

Fügt eine Ereignisprotokollierung hinzu. Verwenden Sie settings, um die Protokollierung für bestimmte LogLevel-Elemente zu aktivieren.

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

Parameter

factory
ILoggerFactory

Das Argument der Erweiterungsmethode.

Gibt zurück

ILoggerFactory
Attribute

Gilt für:

AddEventLog(ILoggerFactory, LogLevel)

Achtung

This method is obsolete and will be removed in a future version. The recommended alternative is AddEventLog(this ILoggingBuilder builder).

Fügt eine Ereignisprotokollierung hinzu, die für LogLevel-Elemente vom Typ „minLevel“ oder höher aktiviert ist.

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

Parameter

factory
ILoggerFactory

Das Argument der Erweiterungsmethode.

minLevel
LogLevel

Das Minimum, das LogLevel protokolliert werden soll.

Gibt zurück

ILoggerFactory
Attribute

Gilt für:

AddEventLog(ILoggingBuilder, EventLogSettings)

Fügt eine Ereignisprotokollierung hinzu. Verwenden Sie settings, um die Protokollierung für bestimmte LogLevel-Elemente zu aktivieren.

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

Parameter

builder
ILoggingBuilder

Das Argument der Erweiterungsmethode.

Gibt zurück

ILoggingBuilder

Die ILoggingBuilder-Schnittstelle zur Verkettung weiterer Aufrufe.

Gilt für:

AddEventLog(ILoggingBuilder, Action<EventLogSettings>)

Fügt eine Ereignisprotokollierung hinzu. Verwenden Sie configure, um die Protokollierung für bestimmte LogLevel-Elemente zu aktivieren.

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

Parameter

builder
ILoggingBuilder

Das Argument der Erweiterungsmethode.

configure
Action<EventLogSettings>

Ein Delegat zum Konfigurieren der EventLogSettings-Schnittstelle.

Gibt zurück

ILoggingBuilder

Die ILoggingBuilder-Schnittstelle zur Verkettung weiterer Aufrufe.

Gilt für: