1 instantiation of LoggingEventSource
Microsoft.Extensions.Logging.EventSource (1)
LoggingEventSource.cs (1)
111
internal static readonly LoggingEventSource Instance = new
LoggingEventSource
();
21 references to LoggingEventSource
Microsoft.Extensions.Logging.EventSource (21)
EventLogFiltersConfigureOptions.cs (2)
11
private readonly
LoggingEventSource
_eventSource;
13
public EventLogFiltersConfigureOptions(
LoggingEventSource
eventSource)
EventLogFiltersConfigureOptionsChangeSource.cs (2)
12
private readonly
LoggingEventSource
_eventSource;
14
public EventLogFiltersConfigureOptionsChangeSource(
LoggingEventSource
eventSource)
EventSourceLogger.cs (10)
27
private readonly
LoggingEventSource
_eventSource;
30
public EventSourceLogger(string categoryName, int factoryID,
LoggingEventSource
eventSource, EventSourceLogger? next)
62
bool formattedMessageEventEnabled = _eventSource.IsEnabled(EventLevel.Critical,
LoggingEventSource
.Keywords.FormattedMessage);
63
bool messageEventEnabled = _eventSource.IsEnabled(EventLevel.Critical,
LoggingEventSource
.Keywords.Message);
64
bool jsonMessageEventEnabled = _eventSource.IsEnabled(EventLevel.Critical,
LoggingEventSource
.Keywords.JsonMessage);
174
if (_eventSource.IsEnabled(EventLevel.Critical,
LoggingEventSource
.Keywords.JsonMessage))
181
if (_eventSource.IsEnabled(EventLevel.Critical,
LoggingEventSource
.Keywords.Message) ||
182
_eventSource.IsEnabled(EventLevel.Critical,
LoggingEventSource
.Keywords.FormattedMessage))
202
private readonly
LoggingEventSource
_eventSource;
204
public 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.
29
factory.AddProvider(new EventSourceLoggerProvider(
LoggingEventSource
.Instance));
35
/// Adds a logger that writes messages to the <see cref="
LoggingEventSource
"/> instance.
43
builder.Services.TryAddSingleton(
LoggingEventSource
.Instance);
EventSourceLoggerProvider.cs (2)
21
private readonly
LoggingEventSource
_eventSource;
27
public EventSourceLoggerProvider(
LoggingEventSource
eventSource)
LoggingEventSource.cs (1)
111
internal static readonly
LoggingEventSource
Instance = new LoggingEventSource();