Compartilhar via


EventSourceLoggerFactoryExtensions.AddEventSourceLogger Método

Definição

Adiciona um agente de eventos chamado 'EventSource' à fábrica.

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

O argumento do método de extensão.

Retornos

O ILoggingBuilder para que chamadas adicionais possam ser encadeadas.

Aplica-se a