Jaa


LoggingOptions.LogContentHeaders Property

Definition

Gets or sets a value indicating whether the HTTP request and response content headers are logged.

public:
 property bool LogContentHeaders { bool get(); void set(bool value); };
[System.Diagnostics.CodeAnalysis.Experimental("EXTEXP0003", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public bool LogContentHeaders { get; set; }
[<System.Diagnostics.CodeAnalysis.Experimental("EXTEXP0003", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
member this.LogContentHeaders : bool with get, set
Public Property LogContentHeaders As Boolean

Property Value

The default value is false.

Attributes

Remarks

This property controls whether the logging of HTTP request and response representation headers (e.g. Content-Type) is enabled. Keep this option disabled if RequestHeadersDataClasses or ResponseHeadersDataClasses don't contain any representation headers, otherwise it will create unnecessary minor performance impact on the headers logging.

Applies to