11 instantiations of LoggerRedactionOptions
Microsoft.Extensions.Telemetry (2)
Logging\ExtendedLoggerFactory.cs (2)
93Config = ComputeConfig(enrichmentOptions?.CurrentValue ?? new(), redactionOptions?.CurrentValue ?? new() { ApplyDiscriminator = false }); 279redactionOptions = new LoggerRedactionOptions
Microsoft.Extensions.Telemetry.Tests (9)
Logging\ExtendedLoggerTests.cs (8)
44var redactionOptions = enableRedaction ? new StaticOptionsMonitor<LoggerRedactionOptions>(new() { ApplyDiscriminator = false }) : null; 140redactionOptions: new StaticOptionsMonitor<LoggerRedactionOptions>(new()), 205redactionOptions: new StaticOptionsMonitor<LoggerRedactionOptions>(new()), 266redactionOptions: new StaticOptionsMonitor<LoggerRedactionOptions>(new()), 308redactionOptions: new StaticOptionsMonitor<LoggerRedactionOptions>(new()), 338redactionOptions: new StaticOptionsMonitor<LoggerRedactionOptions>(new()), 371redactionOptions: new StaticOptionsMonitor<LoggerRedactionOptions>(new()), 405redactionOptions: new StaticOptionsMonitor<LoggerRedactionOptions>(new()),
Logging\SerialExtendedLoggerTests.cs (1)
44redactionOptions: new StaticOptionsMonitor<LoggerRedactionOptions>(new()),
15 references to LoggerRedactionOptions
Microsoft.Extensions.Telemetry (6)
Logging\ExtendedLoggerFactory.cs (3)
41IOptionsMonitor<LoggerRedactionOptions>? redactionOptions = null, 264private LoggerConfig ComputeConfig(LoggerEnrichmentOptions? enrichmentOptions, LoggerRedactionOptions? redactionOptions) 296private void UpdateRedactionOptions(LoggerRedactionOptions redactionOptions) => Config = ComputeConfig(null, redactionOptions);
Logging\LoggingRedactionExtensions.cs (3)
32public static ILoggingBuilder EnableRedaction(this ILoggingBuilder builder, Action<LoggerRedactionOptions> configure) 47/// <param name="section">Configuration section that contains <see cref="LoggerRedactionOptions"/>.</param> 55_ = builder.Services.AddOptions<LoggerRedactionOptions>().Bind(section);
Microsoft.Extensions.Telemetry.Tests (9)
Logging\ExtendedLoggerTests.cs (8)
44var redactionOptions = enableRedaction ? new StaticOptionsMonitor<LoggerRedactionOptions>(new() { ApplyDiscriminator = false }) : null; 140redactionOptions: new StaticOptionsMonitor<LoggerRedactionOptions>(new()), 205redactionOptions: new StaticOptionsMonitor<LoggerRedactionOptions>(new()), 266redactionOptions: new StaticOptionsMonitor<LoggerRedactionOptions>(new()), 308redactionOptions: new StaticOptionsMonitor<LoggerRedactionOptions>(new()), 338redactionOptions: new StaticOptionsMonitor<LoggerRedactionOptions>(new()), 371redactionOptions: new StaticOptionsMonitor<LoggerRedactionOptions>(new()), 405redactionOptions: new StaticOptionsMonitor<LoggerRedactionOptions>(new()),
Logging\SerialExtendedLoggerTests.cs (1)
44redactionOptions: new StaticOptionsMonitor<LoggerRedactionOptions>(new()),