EventLoggerFactoryExtensions.AddEventLog Método

Definición

Sobrecargas

AddEventLog(ILoggerFactory)
Obsoleto.

Agrega un registrador de eventos que está habilitado para LogLevel.Information o superior.

AddEventLog(ILoggingBuilder)

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

AddEventLog(ILoggerFactory, EventLogSettings)
Obsoleto.

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

AddEventLog(ILoggerFactory, LogLevel)
Obsoleto.

Agrega un registrador de eventos que está habilitado para LogLevel de valor minLevel o superior.

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(ILoggerFactory)

Precaución

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

Agrega un registrador de eventos que está habilitado para LogLevel.Information o superior.

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

Parámetros

factory
ILoggerFactory

El argumento del método de extensión.

Devoluciones

ILoggerFactory
Atributos

Se aplica a

AddEventLog(ILoggingBuilder)

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

ILoggingBuilder

La interfaz ILoggingBuilder para que se puedan encadenar llamadas adicionales.

Se aplica a

AddEventLog(ILoggerFactory, EventLogSettings)

Precaución

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

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::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

Parámetros

factory
ILoggerFactory

El argumento del método de extensión.

Devoluciones

ILoggerFactory
Atributos

Se aplica a

AddEventLog(ILoggerFactory, LogLevel)

Precaución

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

Agrega un registrador de eventos que está habilitado para LogLevel de valor minLevel o superior.

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

Parámetros

factory
ILoggerFactory

El argumento del método de extensión.

minLevel
LogLevel

LogLevel Mínimo que se va a registrar.

Devoluciones

ILoggerFactory
Atributos

Se aplica a

AddEventLog(ILoggingBuilder, EventLogSettings)

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

ILoggingBuilder

La interfaz ILoggingBuilder para que se puedan encadenar llamadas adicionales.

Se aplica a

AddEventLog(ILoggingBuilder, Action<EventLogSettings>)

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

ILoggingBuilder

La interfaz ILoggingBuilder para que se puedan encadenar llamadas adicionales.

Se aplica a