Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LogPolicy

Package version

Hierarchy

Implements

Index

Constructors

constructor

Properties

_nextPolicy

_nextPolicy: RequestPolicy

_options

logger

logger: Debugger

sanitizer

sanitizer: Sanitizer

Accessors

allowedHeaderNames

  • get allowedHeaderNames(): Set<string>
  • set allowedHeaderNames(allowedHeaderNames: Set<string>): void
  • Header names whose values will be logged when logging is enabled. Defaults to Date, traceparent, x-ms-client-request-id, and x-ms-request id. Any headers specified in this field will be added to that list. Any other values will be written to logs as "REDACTED".

    deprecated

    Pass these into the constructor instead.

    Returns Set<string>

  • Header names whose values will be logged when logging is enabled. Defaults to Date, traceparent, x-ms-client-request-id, and x-ms-request id. Any headers specified in this field will be added to that list. Any other values will be written to logs as "REDACTED".

    deprecated

    Pass these into the constructor instead.

    Parameters

    • allowedHeaderNames: Set<string>

    Returns void

allowedQueryParameters

  • get allowedQueryParameters(): Set<string>
  • set allowedQueryParameters(allowedQueryParameters: Set<string>): void

Methods

log

sendRequest

shouldLog

Generated using TypeDoc