LoggingEnrichmentExtensions.EnableEnrichment Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Overload
EnableEnrichment(ILoggingBuilder) |
Mengaktifkan fungsionalitas pengayaan dalam infrastruktur pengelogan. |
EnableEnrichment(ILoggingBuilder, IConfigurationSection) |
Mengaktifkan fungsionalitas pengayaan dalam infrastruktur pengelogan. |
EnableEnrichment(ILoggingBuilder, Action<LoggerEnrichmentOptions>) |
Mengaktifkan fungsionalitas pengayaan dalam infrastruktur pengelogan. |
EnableEnrichment(ILoggingBuilder)
Mengaktifkan fungsionalitas pengayaan dalam infrastruktur pengelogan.
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
Parameter
- builder
- ILoggingBuilder
Kontainer injeksi dependensi untuk menambahkan pengelogan.
Mengembalikan
Nilai builder
.
Berlaku untuk
EnableEnrichment(ILoggingBuilder, IConfigurationSection)
Mengaktifkan fungsionalitas pengayaan dalam infrastruktur pengelogan.
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
Parameter
- builder
- ILoggingBuilder
Kontainer injeksi dependensi untuk menambahkan pengelogan.
- section
- IConfigurationSection
Bagian konfigurasi yang berisi LoggerEnrichmentOptions.
Mengembalikan
Nilai builder
.
Berlaku untuk
EnableEnrichment(ILoggingBuilder, Action<LoggerEnrichmentOptions>)
Mengaktifkan fungsionalitas pengayaan dalam infrastruktur pengelogan.
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
Parameter
- builder
- ILoggingBuilder
Kontainer injeksi dependensi untuk menambahkan pengelogan.
- configure
- Action<LoggerEnrichmentOptions>
Mendelegasikan menyempurnakan opsi.
Mengembalikan
Nilai builder
.