2 instantiations of EventLogSettings
Microsoft.Extensions.Logging.EventLog (2)
EventLoggerFactoryExtensions.cs (1)
41
AddEventLog(factory, new
EventLogSettings
() { Filter = (_, logLevel) => logLevel >= minLevel });
EventLogLoggerProvider.cs (1)
32
_settings = settings ?? new
EventLogSettings
();
16 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 (13)
EventLoggerFactoryExtensions.cs (6)
21
/// <param name="settings">The <see cref="
EventLogSettings
"/>.</param>
24
public static ILoggerFactory AddEventLog(this ILoggerFactory factory, EventLog.
EventLogSettings
settings)
69
/// <param name="settings">The <see cref="
EventLogSettings
"/>.</param>
71
public static ILoggingBuilder AddEventLog(this ILoggingBuilder builder,
EventLogSettings
settings)
85
/// <param name="configure">A delegate to configure the <see cref="
EventLogSettings
"/>.</param>
87
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)