Skip to content

Commit f502137

Browse files
committed
Update docs metadata
1 parent 94a52d7 commit f502137

File tree

2 files changed

+51
-10
lines changed

2 files changed

+51
-10
lines changed

‎docs-ref-services/latest/logger-readme.md

Lines changed: 49 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
---
22
title: Azure Logger client library for JavaScript
33
keywords: Azure, javascript, SDK, API, @azure/logger, core
4-
author: ramya-rao-a
5-
ms.author: ramyar
6-
ms.date: 09/30/2021
4+
author: xirzec
5+
ms.author: jeffish
6+
ms.date: 03/02/2023
77
ms.topic: reference
8-
ms.prod: azure
9-
ms.technology: azure
108
ms.devlang: javascript
119
ms.service: core
1210
---
13-
14-
# Azure Logger client library for JavaScript - version 1.0.3
11+
# Azure Logger client library for JavaScript - version 1.0.4
1512

1613

1714
The `@azure/logger` package can be used to enable logging in the Azure SDKs for JavaScript.
@@ -52,6 +49,50 @@ will be emitted.
5249
For example, setting the log level to `warning` will cause all logs that have the log
5350
level `warning` or `error` to be emitted.
5451

52+
53+
**NOTE**: When logging requests and responses, we sanitize these objects to make sure things like `Authorization` headers that contain secrets are not logged.
54+
55+
Request and response bodies are never logged. Headers are redacted by default, unless present in the following list or explicitly allowed by the client SDK:
56+
- "x-ms-client-request-id",
57+
- "x-ms-return-client-request-id",
58+
- "x-ms-useragent",
59+
- "x-ms-correlation-request-id",
60+
- "x-ms-request-id",
61+
- "client-request-id",
62+
- "ms-cv",
63+
- "return-client-request-id",
64+
- "traceparent",
65+
- "Access-Control-Allow-Credentials",
66+
- "Access-Control-Allow-Headers",
67+
- "Access-Control-Allow-Methods",
68+
- "Access-Control-Allow-Origin",
69+
- "Access-Control-Expose-Headers",
70+
- "Access-Control-Max-Age",
71+
- "Access-Control-Request-Headers",
72+
- "Access-Control-Request-Method",
73+
- "Origin",
74+
- "Accept",
75+
- "Accept-Encoding",
76+
- "Cache-Control",
77+
- "Connection",
78+
- "Content-Length",
79+
- "Content-Type",
80+
- "Date",
81+
- "ETag",
82+
- "Expires",
83+
- "If-Match",
84+
- "If-Modified-Since",
85+
- "If-None-Match",
86+
- "If-Unmodified-Since",
87+
- "Last-Modified",
88+
- "Pragma",
89+
- "Request-Id",
90+
- "Retry-After",
91+
- "Server",
92+
- "Transfer-Encoding",
93+
- "User-Agent",
94+
- "WWW-Authenticate",
95+
5596
## Examples
5697

5798
### Example 1 - basic usage
@@ -97,7 +138,7 @@ If you run into issues while using this library, please feel free to [file an is
97138

98139
## Contributing
99140

100-
If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/@azure/logger_1.0.3/CONTRIBUTING.md) to learn more about how to build and test the code.
141+
If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/@azure/logger_1.0.4/CONTRIBUTING.md) to learn more about how to build and test the code.
101142

102143
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fcore%2Flogger%2FREADME.png)
103144

‎metadata/latest/azure-logger.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"Name": "@azure/logger",
3-
"Version": "1.0.3",
3+
"Version": "1.0.4",
44
"DevVersion": null,
55
"DirectoryPath": "sdk/core/logger",
66
"ServiceDirectory": "core",
@@ -10,5 +10,5 @@
1010
"SdkType": "client",
1111
"IsNewSdk": true,
1212
"ArtifactName": "azure-logger",
13-
"ReleaseStatus": "2021-09-30"
13+
"ReleaseStatus": "2023-03-02"
1414
}

0 commit comments

Comments
 (0)