11 instantiations of LoggerRedactionOptions
Microsoft.Extensions.Telemetry (2)
Logging\ExtendedLoggerFactory.cs (2)
93
Config = ComputeConfig(enrichmentOptions?.CurrentValue ?? new(), redactionOptions?.CurrentValue ??
new
() { ApplyDiscriminator = false });
279
redactionOptions = new
LoggerRedactionOptions
Microsoft.Extensions.Telemetry.Tests (9)
Logging\ExtendedLoggerTests.cs (8)
44
var redactionOptions = enableRedaction ? new StaticOptionsMonitor<LoggerRedactionOptions>(
new
() { ApplyDiscriminator = false }) : null;
140
redactionOptions: new StaticOptionsMonitor<LoggerRedactionOptions>(
new
()),
205
redactionOptions: new StaticOptionsMonitor<LoggerRedactionOptions>(
new
()),
266
redactionOptions: new StaticOptionsMonitor<LoggerRedactionOptions>(
new
()),
308
redactionOptions: new StaticOptionsMonitor<LoggerRedactionOptions>(
new
()),
338
redactionOptions: new StaticOptionsMonitor<LoggerRedactionOptions>(
new
()),
371
redactionOptions: new StaticOptionsMonitor<LoggerRedactionOptions>(
new
()),
405
redactionOptions: new StaticOptionsMonitor<LoggerRedactionOptions>(
new
()),
Logging\SerialExtendedLoggerTests.cs (1)
44
redactionOptions: new StaticOptionsMonitor<LoggerRedactionOptions>(
new
()),
15 references to LoggerRedactionOptions
Microsoft.Extensions.Telemetry (6)
Logging\ExtendedLoggerFactory.cs (3)
41
IOptionsMonitor<
LoggerRedactionOptions
>? redactionOptions = null,
264
private LoggerConfig ComputeConfig(LoggerEnrichmentOptions? enrichmentOptions,
LoggerRedactionOptions
? redactionOptions)
296
private void UpdateRedactionOptions(
LoggerRedactionOptions
redactionOptions) => Config = ComputeConfig(null, redactionOptions);
Logging\LoggingRedactionExtensions.cs (3)
32
public 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)
44
var redactionOptions = enableRedaction ? new StaticOptionsMonitor<
LoggerRedactionOptions
>(new() { ApplyDiscriminator = false }) : null;
140
redactionOptions: new StaticOptionsMonitor<
LoggerRedactionOptions
>(new()),
205
redactionOptions: new StaticOptionsMonitor<
LoggerRedactionOptions
>(new()),
266
redactionOptions: new StaticOptionsMonitor<
LoggerRedactionOptions
>(new()),
308
redactionOptions: new StaticOptionsMonitor<
LoggerRedactionOptions
>(new()),
338
redactionOptions: new StaticOptionsMonitor<
LoggerRedactionOptions
>(new()),
371
redactionOptions: new StaticOptionsMonitor<
LoggerRedactionOptions
>(new()),
405
redactionOptions: new StaticOptionsMonitor<
LoggerRedactionOptions
>(new()),
Logging\SerialExtendedLoggerTests.cs (1)
44
redactionOptions: new StaticOptionsMonitor<
LoggerRedactionOptions
>(new()),