Compartir a través de


EventLoggerFactoryExtensions.AddEventLog Método

Definición

Sobrecargas

AddEventLog(ILoggingBuilder)

Agrega un registrador de eventos denominado "EventLog" al generador.

AddEventLog(ILoggingBuilder, EventLogSettings)

Agrega un registrador de eventos. Se usa settings para habilitar el registro de objetos LogLevel específicos.

AddEventLog(ILoggingBuilder, Action<EventLogSettings>)

Agrega un registrador de eventos. Se usa configure para habilitar el registro de objetos LogLevel específicos.

AddEventLog(ILoggingBuilder)

Source:
EventLoggerFactoryExtensions.cs
Source:
EventLoggerFactoryExtensions.cs
Source:
EventLoggerFactoryExtensions.cs

Agrega un registrador de eventos denominado "EventLog" al generador.

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

Parámetros

builder
ILoggingBuilder

El argumento del método de extensión.

Devoluciones

La interfaz ILoggingBuilder para que se puedan encadenar llamadas adicionales.

Se aplica a

AddEventLog(ILoggingBuilder, EventLogSettings)

Source:
EventLoggerFactoryExtensions.cs
Source:
EventLoggerFactoryExtensions.cs
Source:
EventLoggerFactoryExtensions.cs

Agrega un registrador de eventos. Se usa settings para habilitar el registro de objetos LogLevel específicos.

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

Parámetros

builder
ILoggingBuilder

El argumento del método de extensión.

Devoluciones

La interfaz ILoggingBuilder para que se puedan encadenar llamadas adicionales.

Se aplica a

AddEventLog(ILoggingBuilder, Action<EventLogSettings>)

Source:
EventLoggerFactoryExtensions.cs
Source:
EventLoggerFactoryExtensions.cs
Source:
EventLoggerFactoryExtensions.cs

Agrega un registrador de eventos. Se usa configure para habilitar el registro de objetos LogLevel específicos.

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

Parámetros

builder
ILoggingBuilder

El argumento del método de extensión.

configure
Action<EventLogSettings>

Un delegado para configurar la instancia de EventLogSettings.

Devoluciones

La interfaz ILoggingBuilder para que se puedan encadenar llamadas adicionales.

Se aplica a