LogPolicyOptions interface
傳遞至 logPolicy選項。 根據預設,只會記錄一組標頭清單,不過這可以設定。 永遠不會記錄要求和響應主體。
屬性
allowed |
啟用記錄時,將會記錄其值的標頭名稱。 默認為:x-ms-client-request-id、x-ms-return-client-request-id、x-ms-useragent、x-ms-correlation-request-id、 x-ms-request-id、client-request-id、ms-cv、return-client-request-id、traceparent、Access-Control-Allow-Credentials、Access-Control-Allow-Headers、Access-Control-Allow-Methods、Access-Control-Allow-Origin、Access-Control-Expose-Headers、Access-Control-Max-Age、Access-Control-Request-Headers、Access-Control-Request-Method、Origin、Accept-Encoding、Cache-Control、Connection、Content-Length、Content-Type、Date、ETag、Expires、If-Match、If-modified-since、If-None-Match、If-unmodified-Since、Last-modified、Pragma、Request-Id、Retry-After、Server、Transfer-Encoding 和 User-Agent。 此欄位中指定的任何標頭都會新增至該清單。 任何其他值都會寫入記錄為 「REDACTED」。 |
allowed |
查詢字串名稱,其值會在啟用記錄時記錄。 根據預設,不會記錄任何查詢字串值。 |
logger | 用於寫入管線記錄的調試程式 (logger) 實例。 |
屬性詳細資料
allowedHeaderNames
啟用記錄時,將會記錄其值的標頭名稱。 默認為:x-ms-client-request-id、x-ms-return-client-request-id、x-ms-useragent、x-ms-correlation-request-id、 x-ms-request-id、client-request-id、ms-cv、return-client-request-id、traceparent、Access-Control-Allow-Credentials、Access-Control-Allow-Headers、Access-Control-Allow-Methods、Access-Control-Allow-Origin、Access-Control-Expose-Headers、Access-Control-Max-Age、Access-Control-Request-Headers、Access-Control-Request-Method、Origin、Accept-Encoding、Cache-Control、Connection、Content-Length、Content-Type、Date、ETag、Expires、If-Match、If-modified-since、If-None-Match、If-unmodified-Since、Last-modified、Pragma、Request-Id、Retry-After、Server、Transfer-Encoding 和 User-Agent。
此欄位中指定的任何標頭都會新增至該清單。 任何其他值都會寫入記錄為 「REDACTED」。
allowedHeaderNames?: string[]
屬性值
string[]
allowedQueryParameters
查詢字串名稱,其值會在啟用記錄時記錄。 根據預設,不會記錄任何查詢字串值。
allowedQueryParameters?: string[]
屬性值
string[]