|
1 | 1 | ---
|
2 | 2 | title: Azure Logger client library for JavaScript
|
3 | 3 | 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 |
7 | 7 | ms.topic: reference
|
8 |
| -ms.prod: azure |
9 |
| -ms.technology: azure |
10 | 8 | ms.devlang: javascript
|
11 | 9 | ms.service: core
|
12 | 10 | ---
|
13 |
| - |
14 |
| -# Azure Logger client library for JavaScript - version 1.0.3 |
| 11 | +# Azure Logger client library for JavaScript - version 1.0.4 |
15 | 12 |
|
16 | 13 |
|
17 | 14 | The `@azure/logger` package can be used to enable logging in the Azure SDKs for JavaScript.
|
@@ -52,6 +49,50 @@ will be emitted.
|
52 | 49 | For example, setting the log level to `warning` will cause all logs that have the log
|
53 | 50 | level `warning` or `error` to be emitted.
|
54 | 51 |
|
| 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 | + |
55 | 96 | ## Examples
|
56 | 97 |
|
57 | 98 | ### Example 1 - basic usage
|
@@ -97,7 +138,7 @@ If you run into issues while using this library, please feel free to [file an is
|
97 | 138 |
|
98 | 139 | ## Contributing
|
99 | 140 |
|
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. |
101 | 142 |
|
102 | 143 | 
|
103 | 144 |
|
0 commit comments