EventLoggerFactoryExtensions.AddEventLog Metodo

Definizione

Overload

AddEventLog(ILoggerFactory)
Obsoleta.

Aggiunge un logger di eventi abilitato per LogLevel.Information o un livello superiore.

AddEventLog(ILoggingBuilder)

Aggiunge un logger di eventi denominato 'EventLog' alla factory.

AddEventLog(ILoggerFactory, EventLogSettings)
Obsoleta.

Aggiunge un logger di eventi. Usare settings per abilitare la registrazione per LogLevel specifici.

AddEventLog(ILoggerFactory, LogLevel)
Obsoleta.

Aggiunge un logger di eventi abilitato per LogLevel minLevel o un livello superiore.

AddEventLog(ILoggingBuilder, EventLogSettings)

Aggiunge un logger di eventi. Usare settings per abilitare la registrazione per LogLevel specifici.

AddEventLog(ILoggingBuilder, Action<EventLogSettings>)

Aggiunge un logger di eventi. Usare configure per abilitare la registrazione per LogLevel specifici.

AddEventLog(ILoggerFactory)

Attenzione

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

Aggiunge un logger di eventi abilitato per LogLevel.Information o un livello superiore.

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

Parametri

factory
ILoggerFactory

Argomento del metodo di estensione.

Restituisce

ILoggerFactory
Attributi

Si applica a

AddEventLog(ILoggingBuilder)

Aggiunge un logger di eventi denominato 'EventLog' alla factory.

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

Parametri

builder
ILoggingBuilder

Argomento del metodo di estensione.

Restituisce

ILoggingBuilder

Oggetto ILoggingBuilder che consente il concatenamento di chiamate aggiuntive.

Si applica a

AddEventLog(ILoggerFactory, EventLogSettings)

Attenzione

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

Aggiunge un logger di eventi. Usare settings per abilitare la registrazione per LogLevel specifici.

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

Parametri

factory
ILoggerFactory

Argomento del metodo di estensione.

Restituisce

ILoggerFactory
Attributi

Si applica a

AddEventLog(ILoggerFactory, LogLevel)

Attenzione

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

Aggiunge un logger di eventi abilitato per LogLevel minLevel o un livello superiore.

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

Parametri

factory
ILoggerFactory

Argomento del metodo di estensione.

minLevel
LogLevel

Valore minimo LogLevel da registrato.

Restituisce

ILoggerFactory
Attributi

Si applica a

AddEventLog(ILoggingBuilder, EventLogSettings)

Aggiunge un logger di eventi. Usare settings per abilitare la registrazione per LogLevel specifici.

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

Parametri

builder
ILoggingBuilder

Argomento del metodo di estensione.

Restituisce

ILoggingBuilder

Oggetto ILoggingBuilder che consente il concatenamento di chiamate aggiuntive.

Si applica a

AddEventLog(ILoggingBuilder, Action<EventLogSettings>)

Aggiunge un logger di eventi. Usare configure per abilitare la registrazione per LogLevel specifici.

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

Parametri

builder
ILoggingBuilder

Argomento del metodo di estensione.

configure
Action<EventLogSettings>

Delegato per la configurazione dell'oggetto EventLogSettings.

Restituisce

ILoggingBuilder

Oggetto ILoggingBuilder che consente il concatenamento di chiamate aggiuntive.

Si applica a