1 instantiation of LoggingEventSource
Microsoft.Extensions.Logging.EventSource (1)
LoggingEventSource.cs (1)
118
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)
34
private readonly
LoggingEventSource
_eventSource;
37
public EventSourceLogger(string categoryName, int factoryID,
LoggingEventSource
eventSource, EventSourceLogger? next)
69
bool formattedMessageEventEnabled = _eventSource.IsEnabled(EventLevel.Critical,
LoggingEventSource
.Keywords.FormattedMessage);
70
bool messageEventEnabled = _eventSource.IsEnabled(EventLevel.Critical,
LoggingEventSource
.Keywords.Message);
71
bool jsonMessageEventEnabled = _eventSource.IsEnabled(EventLevel.Critical,
LoggingEventSource
.Keywords.JsonMessage);
181
if (_eventSource.IsEnabled(EventLevel.Critical,
LoggingEventSource
.Keywords.JsonMessage))
188
if (_eventSource.IsEnabled(EventLevel.Critical,
LoggingEventSource
.Keywords.Message) ||
189
_eventSource.IsEnabled(EventLevel.Critical,
LoggingEventSource
.Keywords.FormattedMessage))
209
private readonly
LoggingEventSource
_eventSource;
211
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.
49
builder.Services.TryAddSingleton(
LoggingEventSource
.Instance);
EventSourceLoggerProvider.cs (2)
31
private readonly
LoggingEventSource
_eventSource;
37
public EventSourceLoggerProvider(
LoggingEventSource
eventSource)
LoggingEventSource.cs (1)
118
internal static readonly
LoggingEventSource
Instance = new LoggingEventSource();