Bagikan melalui


IWebHostBuilder.UseLoggerFactory(ILoggerFactory) Metode

Definisi

Tentukan yang ILoggerFactory akan digunakan oleh host web.

public:
 Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ UseLoggerFactory(Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public Microsoft.AspNetCore.Hosting.IWebHostBuilder UseLoggerFactory (Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
abstract member UseLoggerFactory : Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
Public Function UseLoggerFactory (loggerFactory As ILoggerFactory) As IWebHostBuilder

Parameter

loggerFactory
ILoggerFactory

yang ILoggerFactory akan digunakan.

Mengembalikan

IWebHostBuilder.

Berlaku untuk