2 instantiations of EventLogSettings
Microsoft.Extensions.Logging.EventLog (2)
EventLoggerFactoryExtensions.cs (1)
43
AddEventLog(factory, new
EventLogSettings
() { Filter = (_, logLevel) => logLevel >= minLevel });
EventLogLoggerProvider.cs (1)
32
_settings = settings ?? new
EventLogSettings
();
21 references to EventLogSettings
Microsoft.Extensions.Hosting.WindowsServices (3)
WindowsServiceLifetimeHostBuilderExtensions.cs (3)
121
services.AddSingleton<IConfigureOptions<
EventLogSettings
>, EventLogSettingsSetup>();
125
private sealed class EventLogSettingsSetup : IConfigureOptions<
EventLogSettings
>
134
public void Configure(
EventLogSettings
settings)
Microsoft.Extensions.Logging.EventLog (18)
EventLogConfigureOptions.cs (2)
19
internal sealed class EventLogConfigureOptions : IConfigureOptions<
EventLogSettings
>
29
public void Configure(
EventLogSettings
options) => _configuration.Bind(options);
EventLoggerFactoryExtensions.cs (9)
23
/// <param name="settings">The <see cref="
EventLogSettings
"/>.</param>
26
public static ILoggerFactory AddEventLog(this ILoggerFactory factory, EventLog.
EventLogSettings
settings)
64
builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<
EventLogSettings
>, EventLogConfigureOptions>());
65
builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IOptionsChangeTokenSource<
EventLogSettings
>, LoggerProviderOptionsChangeTokenSource<
EventLogSettings
, EventLogLoggerProvider>>());
74
/// <param name="settings">The <see cref="
EventLogSettings
"/>.</param>
76
public static ILoggingBuilder AddEventLog(this ILoggingBuilder builder,
EventLogSettings
settings)
90
/// <param name="configure">A delegate to configure the <see cref="
EventLogSettings
"/>.</param>
92
public static ILoggingBuilder AddEventLog(this ILoggingBuilder builder, Action<
EventLogSettings
> configure)
EventLogLogger.cs (3)
17
private readonly
EventLogSettings
_settings;
28
/// <param name="settings">The <see cref="
EventLogSettings
"/>.</param>
30
public EventLogLogger(string name,
EventLogSettings
settings, IExternalScopeProvider? externalScopeProvider)
EventLogLoggerProvider.cs (4)
14
internal readonly
EventLogSettings
_settings;
29
/// <param name="settings">The <see cref="
EventLogSettings
"/>.</param>
30
public EventLogLoggerProvider(
EventLogSettings
? settings)
39
public EventLogLoggerProvider(IOptions<
EventLogSettings
> options)