Dela via


LoggingOptions.RequestPathLoggingMode Property

Definition

Gets or sets a strategy how request path should be logged.

public Microsoft.AspNetCore.Telemetry.IncomingPathLoggingMode RequestPathLoggingMode { get; set; }
member this.RequestPathLoggingMode : Microsoft.AspNetCore.Telemetry.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 Microsoft.Extensions.Http.Telemetry.HttpRouteParameterRedactionMode.None.

Applies to