<PackageReference Include="System.ClientModel" Version="1.6.0" />

System.ClientModel.Primitives.ClientLoggingOptions

public class ClientLoggingOptions
Exposes client options for logging within a ClientPipeline.
public IList<string> AllowedHeaderNames { get; }

Gets or sets a list of header names that are not redacted during logging.

public IList<string> AllowedQueryParameters { get; }

Gets or sets a list of query parameter names that are not redacted during logging.

public bool? EnableLogging { get; set; }

Gets or sets value indicating if logging should be enabled in this client pipeline.

public bool? EnableMessageContentLogging { get; set; }

Gets or sets value indicating if request and response content should be logged.

public bool? EnableMessageLogging { get; set; }

Gets or sets value indicating if request and response uri and header information should be logged.

public ILoggerFactory LoggerFactory { get; set; }

Gets or sets the implementation of ILoggerFactory to use to create ILogger instances for logging.

public int? MessageContentSizeLimit { get; set; }

Gets or sets value indicating maximum size of content to log in bytes.

protected void AssertNotFrozen()

Assert that Freeze has not been called on this ClientLoggingOptions instance.

public virtual void Freeze()

Freeze this instance of ClientLoggingOptions. After this method has been called, any attempt to set properties on the instance or call methods that would change its state will throw InvalidOperationException.