EventSourceLoggerProvider(LoggingEventSource) 构造函数

定义

创建 EventSourceLoggerProvider 的实例。

public:
 EventSourceLoggerProvider(Microsoft::Extensions::Logging::EventSource::LoggingEventSource ^ eventSource);
public EventSourceLoggerProvider (Microsoft.Extensions.Logging.EventSource.LoggingEventSource eventSource);
new Microsoft.Extensions.Logging.EventSource.EventSourceLoggerProvider : Microsoft.Extensions.Logging.EventSource.LoggingEventSource -> Microsoft.Extensions.Logging.EventSource.EventSourceLoggerProvider
Public Sub New (eventSource As LoggingEventSource)

参数

eventSource
LoggingEventSource

日志记录事件源。

适用于