Compartir a través de


WebHostBuilder.ConfigureLogging(Action<ILoggerFactory>) Método

Definición

Agrega un delegado para configurar el objeto ILoggerFactory proporcionado. Esto se puede llamar varias veces.

public:
 virtual Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ ConfigureLogging(Action<Microsoft::Extensions::Logging::ILoggerFactory ^> ^ configureLogging);
public Microsoft.AspNetCore.Hosting.IWebHostBuilder ConfigureLogging (Action<Microsoft.Extensions.Logging.ILoggerFactory> configureLogging);
abstract member ConfigureLogging : Action<Microsoft.Extensions.Logging.ILoggerFactory> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
override this.ConfigureLogging : Action<Microsoft.Extensions.Logging.ILoggerFactory> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
Public Function ConfigureLogging (configureLogging As Action(Of ILoggerFactory)) As IWebHostBuilder

Parámetros

configureLogging
Action<ILoggerFactory>

El delegado que configura ILoggerFactory.

Devoluciones

IWebHostBuilder.

Implementaciones

Se aplica a