Compartir a través de


EventSourceLoggerFactoryExtensions.AddEventSourceLogger Método

Definición

Agrega un registrador que escribe mensajes en la instancia de LoggingEventSource.

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

Parámetros

builder
ILoggingBuilder

Argumento del método de extensión.

Devoluciones

El ILoggingBuilder para que se puedan encadenar llamadas adicionales.

Se aplica a