Bagikan melalui


LoggingEnrichmentExtensions.EnableEnrichment Metode

Definisi

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)

Sumber:
LoggingEnrichmentExtensions.cs
Sumber:
LoggingEnrichmentExtensions.cs

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)

Sumber:
LoggingEnrichmentExtensions.cs
Sumber:
LoggingEnrichmentExtensions.cs

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>)

Sumber:
LoggingEnrichmentExtensions.cs
Sumber:
LoggingEnrichmentExtensions.cs

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.

Berlaku untuk