Partager via


WebHostBuilder.UseLoggerFactory(ILoggerFactory) Méthode

Définition

Spécifiez le ILoggerFactory à utiliser par l’hôte web.

public:
 virtual 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
override this.UseLoggerFactory : Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
Public Function UseLoggerFactory (loggerFactory As ILoggerFactory) As IWebHostBuilder

Paramètres

loggerFactory
ILoggerFactory

ILoggerFactory à utiliser.

Retours

L’IWebHostBuilderopérateur

Implémente

S’applique à