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)
1753Assert.Single(builder.Services.Where(descriptor => descriptor.ServiceType == typeof(IConfigureOptions<LoggerFactoryOptions>))); 1762Assert.Single(app.Services.GetRequiredService<IEnumerable<IConfigureOptions<LoggerFactoryOptions>>>()); 1773Assert.DoesNotContain(builder.Services, descriptor => descriptor.ServiceType == typeof(IConfigureOptions<LoggerFactoryOptions>));
Microsoft.Extensions.Logging (10)
LoggerFactory.cs (5)
29private readonly LoggerFactoryOptions _factoryOptions; 69/// <param name="options">The <see cref="LoggerFactoryOptions"/>.</param> 70public LoggerFactory(IEnumerable<ILoggerProvider> providers, IOptionsMonitor<LoggerFilterOptions> filterOption, IOptions<LoggerFactoryOptions>? options) : this(providers, filterOption, options, null) 79/// <param name="options">The <see cref="LoggerFactoryOptions"/>.</param> 81public 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> 58public static ILoggingBuilder Configure(this ILoggingBuilder builder, Action<LoggerFactoryOptions> action)
Microsoft.Extensions.Telemetry (2)
Logging\ExtendedLoggerFactory.cs (2)
22private readonly LoggerFactoryOptions _factoryOptions; 38IOptions<LoggerFactoryOptions>? factoryOptions = null,