Bagikan melalui


WebHostBuilder.ConfigureLogging(Action<ILoggerFactory>) Metode

Definisi

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

public:
 virtual 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
override this.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.

Penerapan

Berlaku untuk