HostingHostBuilderExtensions.ConfigureLogging 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
ConfigureLogging(IHostBuilder, Action<HostBuilderContext,ILoggingBuilder>) |
Menambahkan delegasi untuk mengonfigurasi yang disediakan ILoggingBuilder. Ini mungkin dipanggil beberapa kali. |
ConfigureLogging(IHostBuilder, Action<ILoggingBuilder>) |
Menambahkan delegasi untuk mengonfigurasi yang disediakan ILoggingBuilder. Ini mungkin dipanggil beberapa kali. |
ConfigureLogging(IHostBuilder, Action<HostBuilderContext,ILoggingBuilder>)
Menambahkan delegasi untuk mengonfigurasi yang disediakan ILoggingBuilder. Ini mungkin dipanggil beberapa kali.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Hosting::IHostBuilder ^ ConfigureLogging(Microsoft::Extensions::Hosting::IHostBuilder ^ hostBuilder, Action<Microsoft::Extensions::Hosting::HostBuilderContext ^, Microsoft::Extensions::Logging::ILoggingBuilder ^> ^ configureLogging);
public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureLogging (this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, Action<Microsoft.Extensions.Hosting.HostBuilderContext,Microsoft.Extensions.Logging.ILoggingBuilder> configureLogging);
static member ConfigureLogging : Microsoft.Extensions.Hosting.IHostBuilder * Action<Microsoft.Extensions.Hosting.HostBuilderContext, Microsoft.Extensions.Logging.ILoggingBuilder> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function ConfigureLogging (hostBuilder As IHostBuilder, configureLogging As Action(Of HostBuilderContext, ILoggingBuilder)) As IHostBuilder
Parameter
- hostBuilder
- IHostBuilder
untuk IHostBuilder mengonfigurasi.
- configureLogging
- Action<HostBuilderContext,ILoggingBuilder>
Delegasi yang mengonfigurasi ILoggingBuilder.
Mengembalikan
Instans yang sama untuk IHostBuilder penautan.
Berlaku untuk
ConfigureLogging(IHostBuilder, Action<ILoggingBuilder>)
Menambahkan delegasi untuk mengonfigurasi yang disediakan ILoggingBuilder. Ini mungkin dipanggil beberapa kali.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Hosting::IHostBuilder ^ ConfigureLogging(Microsoft::Extensions::Hosting::IHostBuilder ^ hostBuilder, Action<Microsoft::Extensions::Logging::ILoggingBuilder ^> ^ configureLogging);
public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureLogging (this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, Action<Microsoft.Extensions.Logging.ILoggingBuilder> configureLogging);
static member ConfigureLogging : Microsoft.Extensions.Hosting.IHostBuilder * Action<Microsoft.Extensions.Logging.ILoggingBuilder> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function ConfigureLogging (hostBuilder As IHostBuilder, configureLogging As Action(Of ILoggingBuilder)) As IHostBuilder
Parameter
- hostBuilder
- IHostBuilder
untuk IHostBuilder mengonfigurasi.
- configureLogging
- Action<ILoggingBuilder>
Delegasi yang mengonfigurasi ILoggingBuilder.
Mengembalikan
Instans yang sama untuk IHostBuilder penautan.