Compartilhar via


LoggingBuilderExtensions.AddConfiguration Método

Definição

Configura as opções de filtro do agente de uma instância de IConfiguration.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggingBuilder ^ AddConfiguration(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder, Microsoft::Extensions::Configuration::IConfiguration ^ configuration);
public static Microsoft.Extensions.Logging.ILoggingBuilder AddConfiguration (this Microsoft.Extensions.Logging.ILoggingBuilder builder, Microsoft.Extensions.Configuration.IConfiguration configuration);
static member AddConfiguration : Microsoft.Extensions.Logging.ILoggingBuilder * Microsoft.Extensions.Configuration.IConfiguration -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function AddConfiguration (builder As ILoggingBuilder, configuration As IConfiguration) As ILoggingBuilder

Parâmetros

builder
ILoggingBuilder

O construtor de log para o qual configurar as opções de filtro do agente.

configuration
IConfiguration

As opções de filtro a serem adicionadas.

Retornos

O construtor de log com as opções de filtro configuradas.

Aplica-se a