Compartilhar via


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

Definição

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

public:
 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
Public Function ConfigureLogging (configureLogging As Action(Of ILoggerFactory)) As IWebHostBuilder

Parâmetros

configureLogging
Action<ILoggerFactory>

O delegado que configura o ILoggerFactory.

Retornos

O IWebHostBuilder.

Aplica-se a