Compartir a través de


LoggingBuilderExtensions.AddProvider(ILoggingBuilder, ILoggerProvider) Método

Definición

Agrega el ILoggerProvider especificado al ILoggingBuilder

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

El ILoggingBuilder al que agregar el provider.

provider
ILoggerProvider

El ILoggerProvider que se va a agregar al builder.

Devoluciones

El ILoggingBuilder para que se puedan encadenar llamadas adicionales.

Se aplica a