Delen via


ClientLoggingOptions Class

Definition

Exposes client options for logging within a ClientPipeline.

public class ClientLoggingOptions
type ClientLoggingOptions = class
Public Class ClientLoggingOptions
Inheritance
ClientLoggingOptions

Constructors

ClientLoggingOptions()

Properties

AllowedHeaderNames

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

AllowedQueryParameters

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

EnableLogging

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

EnableMessageContentLogging

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

EnableMessageLogging

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

LoggerFactory

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

MessageContentSizeLimit

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

Methods

AssertNotFrozen()

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

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.

Applies to