Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
LoggingRedactionOptions.RequestPathLoggingMode Property
Definition
- Namespace:
- Microsoft.AspNetCore.Diagnostics.Logging
- Assembly:
- Microsoft.AspNetCore.Diagnostics.Middleware.dll
- Package:
- Microsoft.AspNetCore.Diagnostics.Middleware v10.0.0
- Package:
- Microsoft.AspNetCore.Diagnostics.Middleware v10.6.0
- Package:
- Microsoft.AspNetCore.Diagnostics.Middleware v9.8.0
- Source:
- LoggingRedactionOptions.cs
- Source:
- LoggingRedactionOptions.cs
- Source:
- LoggingRedactionOptions.cs
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a strategy how request path should be logged.
public Microsoft.AspNetCore.Diagnostics.Logging.IncomingPathLoggingMode RequestPathLoggingMode { get; set; }
member this.RequestPathLoggingMode : Microsoft.AspNetCore.Diagnostics.Logging.IncomingPathLoggingMode with get, set
Public Property RequestPathLoggingMode As IncomingPathLoggingMode
Property Value
The default value is Formatted.
Remarks
Make sure you add redactors to ensure that sensitive information doesn't find its way into your log records. This option only applies when the RequestPathParameterRedactionMode option is not set to None.
Applies to
Feedback
Was this page helpful?
