Bagikan melalui


IWebHostBuilder.ConfigureLogging(Action<ILoggerFactory>) Metode

Definisi

Menambahkan delegasi untuk mengonfigurasi yang disediakan ILoggerFactory. Ini dapat dipanggil beberapa kali.

public:
 Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ ConfigureLogging(Action<Microsoft::Extensions::Logging::ILoggerFactory ^> ^ configureLogging);
public Microsoft.AspNetCore.Hosting.IWebHostBuilder ConfigureLogging (Action<Microsoft.Extensions.Logging.ILoggerFactory> configureLogging);
abstract member ConfigureLogging : Action<Microsoft.Extensions.Logging.ILoggerFactory> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
Public Function ConfigureLogging (configureLogging As Action(Of ILoggerFactory)) As IWebHostBuilder

Parameter

configureLogging
Action<ILoggerFactory>

Delegasi yang mengonfigurasi ILoggerFactory.

Mengembalikan

IWebHostBuilder.

Berlaku untuk