1 instantiation of LoggingEventSource
Microsoft.Extensions.Logging.EventSource (1)
LoggingEventSource.cs (1)
118internal static readonly LoggingEventSource Instance = new LoggingEventSource();
21 references to LoggingEventSource
Microsoft.Extensions.Logging.EventSource (21)
EventLogFiltersConfigureOptions.cs (2)
11private readonly LoggingEventSource _eventSource; 13public EventLogFiltersConfigureOptions(LoggingEventSource eventSource)
EventLogFiltersConfigureOptionsChangeSource.cs (2)
12private readonly LoggingEventSource _eventSource; 14public EventLogFiltersConfigureOptionsChangeSource(LoggingEventSource eventSource)
EventSourceLogger.cs (10)
34private readonly LoggingEventSource _eventSource; 37public EventSourceLogger(string categoryName, int factoryID, LoggingEventSource eventSource, EventSourceLogger? next) 69bool formattedMessageEventEnabled = _eventSource.IsEnabled(EventLevel.Critical, LoggingEventSource.Keywords.FormattedMessage); 70bool messageEventEnabled = _eventSource.IsEnabled(EventLevel.Critical, LoggingEventSource.Keywords.Message); 71bool jsonMessageEventEnabled = _eventSource.IsEnabled(EventLevel.Critical, LoggingEventSource.Keywords.JsonMessage); 181if (_eventSource.IsEnabled(EventLevel.Critical, LoggingEventSource.Keywords.JsonMessage)) 188if (_eventSource.IsEnabled(EventLevel.Critical, LoggingEventSource.Keywords.Message) || 189_eventSource.IsEnabled(EventLevel.Critical, LoggingEventSource.Keywords.FormattedMessage)) 209private readonly LoggingEventSource _eventSource; 211public ActivityScope(LoggingEventSource eventSource, string categoryName, int activityID, int factoryID, bool isJsonStop)
EventSourceLoggerFactoryExtensions.cs (4)
19/// Adds a logger that writes messages to the <see cref="LoggingEventSource"/> instance. 29factory.AddProvider(new EventSourceLoggerProvider(LoggingEventSource.Instance)); 35/// Adds a logger that writes messages to the <see cref="LoggingEventSource"/> instance. 49builder.Services.TryAddSingleton(LoggingEventSource.Instance);
EventSourceLoggerProvider.cs (2)
31private readonly LoggingEventSource _eventSource; 37public EventSourceLoggerProvider(LoggingEventSource eventSource)
LoggingEventSource.cs (1)
118internal static readonly LoggingEventSource Instance = new LoggingEventSource();