Condividi tramite


WebHostBuilder.UseLoggerFactory(ILoggerFactory) Metodo

Definizione

Specificare l'oggetto ILoggerFactory da utilizzare dall'host 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

Parametri

loggerFactory
ILoggerFactory

Struttura ILoggerFactory da utilizzare.

Restituisce

Oggetto IWebHostBuilder.

Implementazioni

Si applica a