LoggingEnrichmentExtensions.EnableEnrichment Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
EnableEnrichment(ILoggingBuilder) |
Enables enrichment functionality within the logging infrastructure. |
EnableEnrichment(ILoggingBuilder, IConfigurationSection) |
Enables enrichment functionality within the logging infrastructure. |
EnableEnrichment(ILoggingBuilder, Action<LoggerEnrichmentOptions>) |
Enables enrichment functionality within the logging infrastructure. |
EnableEnrichment(ILoggingBuilder)
Enables enrichment functionality within the logging infrastructure.
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
Parameters
- builder
- ILoggingBuilder
The dependency injection container to add logging to.
Returns
The value of builder
.
Applies to
EnableEnrichment(ILoggingBuilder, IConfigurationSection)
Enables enrichment functionality within the logging infrastructure.
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
Parameters
- builder
- ILoggingBuilder
The dependency injection container to add logging to.
- section
- IConfigurationSection
Configuration section that contains LoggerEnrichmentOptions.
Returns
The value of builder
.
Applies to
EnableEnrichment(ILoggingBuilder, Action<LoggerEnrichmentOptions>)
Enables enrichment functionality within the logging infrastructure.
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
Parameters
- builder
- ILoggingBuilder
The dependency injection container to add logging to.
- configure
- Action<LoggerEnrichmentOptions>
Delegate the fine-tune the options.
Returns
The value of builder
.