LogPolicyOptions interface

Options to configure the logPolicy.

Properties

additionalAllowedHeaderNames

Header names whose values will be logged when logging is enabled. Defaults include a list of well-known safe headers. Any headers specified in this field will be added to that list. Any other values will be written to logs as "REDACTED".

additionalAllowedQueryParameters

Query string names whose values will be logged when logging is enabled. By default no query string values are logged.

logger

The log function to use for writing pipeline logs. Defaults to core-http's built-in logger. Compatible with the debug library.

Property Details

additionalAllowedHeaderNames

Header names whose values will be logged when logging is enabled. Defaults include a list of well-known safe headers. Any headers specified in this field will be added to that list. Any other values will be written to logs as "REDACTED".

additionalAllowedHeaderNames?: string[]

Property Value

string[]

additionalAllowedQueryParameters

Query string names whose values will be logged when logging is enabled. By default no query string values are logged.

additionalAllowedQueryParameters?: string[]

Property Value

string[]

logger

The log function to use for writing pipeline logs. Defaults to core-http's built-in logger. Compatible with the debug library.

logger?: Debugger

Property Value