Sdílet prostřednictvím


IWebHostBuilder.UseLoggerFactory(ILoggerFactory) Metoda

Definice

Zadejte, který ILoggerFactory má webový hostitel používat.

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

Parametry

loggerFactory
ILoggerFactory

Hodnota ILoggerFactory , která se má použít.

Návraty

Hodnota IWebHostBuilder

Platí pro