LoggingEnrichmentExtensions.EnableEnrichment Método

Definição

Sobrecargas

EnableEnrichment(ILoggingBuilder)

Habilita a funcionalidade de enriquecimento dentro da infraestrutura de log.

EnableEnrichment(ILoggingBuilder, IConfigurationSection)

Habilita a funcionalidade de enriquecimento dentro da infraestrutura de log.

EnableEnrichment(ILoggingBuilder, Action<LoggerEnrichmentOptions>)

Habilita a funcionalidade de enriquecimento dentro da infraestrutura de log.

EnableEnrichment(ILoggingBuilder)

Origem:
LoggingEnrichmentExtensions.cs

Habilita a funcionalidade de enriquecimento dentro da infraestrutura de log.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggingBuilder ^ EnableEnrichment(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder);
public static Microsoft.Extensions.Logging.ILoggingBuilder EnableEnrichment (this Microsoft.Extensions.Logging.ILoggingBuilder builder);
static member EnableEnrichment : Microsoft.Extensions.Logging.ILoggingBuilder -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function EnableEnrichment (builder As ILoggingBuilder) As ILoggingBuilder

Parâmetros

builder
ILoggingBuilder

O contêiner de injeção de dependência ao qual adicionar registro em log.

Retornos

O valor de builder.

Aplica-se a

EnableEnrichment(ILoggingBuilder, IConfigurationSection)

Origem:
LoggingEnrichmentExtensions.cs

Habilita a funcionalidade de enriquecimento dentro da infraestrutura de log.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggingBuilder ^ EnableEnrichment(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder, Microsoft::Extensions::Configuration::IConfigurationSection ^ section);
public static Microsoft.Extensions.Logging.ILoggingBuilder EnableEnrichment (this Microsoft.Extensions.Logging.ILoggingBuilder builder, Microsoft.Extensions.Configuration.IConfigurationSection section);
static member EnableEnrichment : Microsoft.Extensions.Logging.ILoggingBuilder * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function EnableEnrichment (builder As ILoggingBuilder, section As IConfigurationSection) As ILoggingBuilder

Parâmetros

builder
ILoggingBuilder

O contêiner de injeção de dependência ao qual adicionar registro em log.

section
IConfigurationSection

Seção de configuração que contém LoggerEnrichmentOptions.

Retornos

O valor de builder.

Aplica-se a

EnableEnrichment(ILoggingBuilder, Action<LoggerEnrichmentOptions>)

Origem:
LoggingEnrichmentExtensions.cs

Habilita a funcionalidade de enriquecimento dentro da infraestrutura de log.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggingBuilder ^ EnableEnrichment(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder, Action<Microsoft::Extensions::Logging::LoggerEnrichmentOptions ^> ^ configure);
public static Microsoft.Extensions.Logging.ILoggingBuilder EnableEnrichment (this Microsoft.Extensions.Logging.ILoggingBuilder builder, Action<Microsoft.Extensions.Logging.LoggerEnrichmentOptions> configure);
static member EnableEnrichment : Microsoft.Extensions.Logging.ILoggingBuilder * Action<Microsoft.Extensions.Logging.LoggerEnrichmentOptions> -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function EnableEnrichment (builder As ILoggingBuilder, configure As Action(Of LoggerEnrichmentOptions)) As ILoggingBuilder

Parâmetros

builder
ILoggingBuilder

O contêiner de injeção de dependência ao qual adicionar registro em log.

configure
Action<LoggerEnrichmentOptions>

Delegar as opções de ajuste fino.

Retornos

O valor de builder.

Aplica-se a