Partilhar via


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

Definição

Adiciona um delegado para configurar o ILoggerFactory fornecido. Isso pode ser chamado várias vezes.

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>

O delegado que configura o ILoggerFactory.

Retornos

O IWebHostBuilder.

Implementações

Aplica-se a