Partager via


LoggingEnrichmentExtensions.EnableEnrichment Méthode

Définition

Surcharges

EnableEnrichment(ILoggingBuilder)

Active la fonctionnalité d’enrichissement dans l’infrastructure de journalisation.

EnableEnrichment(ILoggingBuilder, IConfigurationSection)

Active la fonctionnalité d’enrichissement dans l’infrastructure de journalisation.

EnableEnrichment(ILoggingBuilder, Action<LoggerEnrichmentOptions>)

Active la fonctionnalité d’enrichissement dans l’infrastructure de journalisation.

EnableEnrichment(ILoggingBuilder)

Source:
LoggingEnrichmentExtensions.cs
Source:
LoggingEnrichmentExtensions.cs

Active la fonctionnalité d’enrichissement dans l’infrastructure de journalisation.

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

Paramètres

builder
ILoggingBuilder

Conteneur d’injection de dépendances auquel ajouter la journalisation.

Retours

Valeur de builder.

S’applique à

EnableEnrichment(ILoggingBuilder, IConfigurationSection)

Source:
LoggingEnrichmentExtensions.cs
Source:
LoggingEnrichmentExtensions.cs

Active la fonctionnalité d’enrichissement dans l’infrastructure de journalisation.

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

Paramètres

builder
ILoggingBuilder

Conteneur d’injection de dépendances auquel ajouter la journalisation.

section
IConfigurationSection

Section Configuration qui contient LoggerEnrichmentOptions.

Retours

Valeur de builder.

S’applique à

EnableEnrichment(ILoggingBuilder, Action<LoggerEnrichmentOptions>)

Source:
LoggingEnrichmentExtensions.cs
Source:
LoggingEnrichmentExtensions.cs

Active la fonctionnalité d’enrichissement dans l’infrastructure de journalisation.

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

Paramètres

builder
ILoggingBuilder

Conteneur d’injection de dépendances auquel ajouter la journalisation.

configure
Action<LoggerEnrichmentOptions>

Déléguer les options affinées.

Retours

Valeur de builder.

S’applique à