20 references to IncomingPathLoggingMode
Microsoft.AspNetCore.Diagnostics.Middleware (11)
Logging\HttpLoggingRedactionInterceptor.cs (7)
26
private readonly
IncomingPathLoggingMode
_requestPathLogMode;
98
if (_requestPathLogMode ==
IncomingPathLoggingMode
.Formatted)
182
private static
IncomingPathLoggingMode
EnsureRequestPathLoggingModeIsValid(
IncomingPathLoggingMode
mode)
185
IncomingPathLoggingMode
.Structured or
IncomingPathLoggingMode
.Formatted => mode,
186
_ => throw new InvalidOperationException($"Unsupported value '{mode}' for enum type '{nameof(
IncomingPathLoggingMode
)}'"),
Logging\LoggingRedactionOptions.cs (4)
22
private const
IncomingPathLoggingMode
DefaultRequestPathLoggingMode =
IncomingPathLoggingMode
.Formatted;
29
/// The default value is <see cref="
IncomingPathLoggingMode
.Formatted"/>.
36
public
IncomingPathLoggingMode
RequestPathLoggingMode { get; set; } = DefaultRequestPathLoggingMode;
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (9)
Logging\AcceptanceTests.cs (3)
432
[InlineData(
IncomingPathLoggingMode
.Structured)]
433
[InlineData(
IncomingPathLoggingMode
.Formatted)]
434
public async Task HttpLogging_WhenRedactionModeNone_LogIncomingRequestPath(
IncomingPathLoggingMode
pathLoggingMode)
Logging\AcceptanceTests.Mvc.cs (2)
96
services => services.AddHttpLoggingRedaction(x => x.RequestPathLoggingMode =
IncomingPathLoggingMode
.Structured),
138
x.RequestPathLoggingMode =
IncomingPathLoggingMode
.Structured;
Logging\AcceptanceTests.Routing.cs (1)
173
options.RequestPathLoggingMode =
IncomingPathLoggingMode
.Structured;
Logging\HttpLoggingServiceExtensionsTests.cs (1)
48
Assert.Equal(
IncomingPathLoggingMode
.Structured, options.RequestPathLoggingMode);
Logging\LoggingOptionsValidationTests.cs (2)
25
.AddHttpLoggingRedaction(x => x.RequestPathLoggingMode = (
IncomingPathLoggingMode
)mode)
36
public void Should_NotThrow_OnValidPathLoggingMode(
IncomingPathLoggingMode
mode)