1 instantiation of LoggingEventSource
Microsoft.Extensions.Logging.EventSource (1)
LoggingEventSource.cs (1)
111internal 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)
27private readonly LoggingEventSource _eventSource; 30public EventSourceLogger(string categoryName, int factoryID, LoggingEventSource eventSource, EventSourceLogger? next) 62bool formattedMessageEventEnabled = _eventSource.IsEnabled(EventLevel.Critical, LoggingEventSource.Keywords.FormattedMessage); 63bool messageEventEnabled = _eventSource.IsEnabled(EventLevel.Critical, LoggingEventSource.Keywords.Message); 64bool jsonMessageEventEnabled = _eventSource.IsEnabled(EventLevel.Critical, LoggingEventSource.Keywords.JsonMessage); 174if (_eventSource.IsEnabled(EventLevel.Critical, LoggingEventSource.Keywords.JsonMessage)) 181if (_eventSource.IsEnabled(EventLevel.Critical, LoggingEventSource.Keywords.Message) || 182_eventSource.IsEnabled(EventLevel.Critical, LoggingEventSource.Keywords.FormattedMessage)) 202private readonly LoggingEventSource _eventSource; 204public 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. 43builder.Services.TryAddSingleton(LoggingEventSource.Instance);
EventSourceLoggerProvider.cs (2)
21private readonly LoggingEventSource _eventSource; 27public EventSourceLoggerProvider(LoggingEventSource eventSource)
LoggingEventSource.cs (1)
111internal static readonly LoggingEventSource Instance = new LoggingEventSource();