Compartir a través de


WebHostBuilder.UseLoggerFactory(ILoggerFactory) Método

Definición

Especifique el objeto ILoggerFactory que va a usar el 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

Parámetros

loggerFactory
ILoggerFactory

ILoggerFactory que se va a utilizar.

Devoluciones

IWebHostBuilder.

Implementaciones

Se aplica a