2 instantiations of LoggerFactoryOptions
Microsoft.Extensions.Logging (1)
LoggerFactory.cs (1)
85
_factoryOptions = options == null || options.Value == null ? new
LoggerFactoryOptions
() : options.Value;
Microsoft.Extensions.Telemetry (1)
Logging\ExtendedLoggerFactory.cs (1)
47
_factoryOptions = factoryOptions == null || factoryOptions.Value == null ? new
LoggerFactoryOptions
() : factoryOptions.Value;
15 references to LoggerFactoryOptions
Microsoft.AspNetCore.Tests (3)
WebApplicationTests.cs (3)
1753
Assert.Single(builder.Services.Where(descriptor => descriptor.ServiceType == typeof(IConfigureOptions<
LoggerFactoryOptions
>)));
1762
Assert.Single(app.Services.GetRequiredService<IEnumerable<IConfigureOptions<
LoggerFactoryOptions
>>>());
1773
Assert.DoesNotContain(builder.Services, descriptor => descriptor.ServiceType == typeof(IConfigureOptions<
LoggerFactoryOptions
>));
Microsoft.Extensions.Logging (10)
LoggerFactory.cs (5)
29
private readonly
LoggerFactoryOptions
_factoryOptions;
69
/// <param name="options">The <see cref="
LoggerFactoryOptions
"/>.</param>
70
public LoggerFactory(IEnumerable<ILoggerProvider> providers, IOptionsMonitor<LoggerFilterOptions> filterOption, IOptions<
LoggerFactoryOptions
>? options) : this(providers, filterOption, options, null)
79
/// <param name="options">The <see cref="
LoggerFactoryOptions
"/>.</param>
81
public LoggerFactory(IEnumerable<ILoggerProvider> providers, IOptionsMonitor<LoggerFilterOptions> filterOption, IOptions<
LoggerFactoryOptions
>? options = null, IExternalScopeProvider? scopeProvider = null)
LoggerFactoryOptions.cs (2)
15
/// Creates a new <see cref="
LoggerFactoryOptions
"/> instance.
20
/// Gets or sets <see cref="
LoggerFactoryOptions
"/> value to indicate which parts of the tracing context information should be included with the logging scopes.
LoggingBuilderExtensions.cs (3)
53
/// Configure the <paramref name="builder"/> with the <see cref="
LoggerFactoryOptions
"/>.
55
/// <param name="builder">The <see cref="ILoggingBuilder"/> to be configured with <see cref="
LoggerFactoryOptions
"/>.</param>
58
public static ILoggingBuilder Configure(this ILoggingBuilder builder, Action<
LoggerFactoryOptions
> action)
Microsoft.Extensions.Telemetry (2)
Logging\ExtendedLoggerFactory.cs (2)
22
private readonly
LoggerFactoryOptions
_factoryOptions;
38
IOptions<
LoggerFactoryOptions
>? factoryOptions = null,