Partilhar via


LoggingBuilderExtensions.AddProvider(ILoggingBuilder, ILoggerProvider) Método

Definição

Adiciona o ILoggerProvider especificado ao ILoggingBuilder para que as chamadas possam ser encadeadas.

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

Parâmetros

builder
ILoggingBuilder

O construtor de log ao qual adicionar o provider.

provider
ILoggerProvider

O provedor de agente ao qual adicionar o builder.

Retornos

ILoggingBuilder

Um construtor de log no qual você pode encadear chamadas adicionais.

Aplica-se a