Bagikan melalui


EventSourceLoggerFactoryExtensions.AddEventSourceLogger Metode

Definisi

Menambahkan pencatat yang menulis pesan ke instans 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

Parameter

builder
ILoggingBuilder

Argumen metode ekstensi.

Mengembalikan

ILoggingBuilder sehingga panggilan tambahan dapat dirangkai.

Berlaku untuk