|
1 | 1 | --- |
2 | | -title: Enable logging for MSAL.NET and Microsoft Graph SDK |
| 2 | +title: Enable Logging for MSAL.NET and Microsoft Graph SDK |
3 | 3 | description: Introduces how to enable logging for both MSAL.NET and Microsoft Graph SDK. |
4 | 4 | ms.reviewer: bachoang, v-weizhu |
5 | 5 | ms.service: entra-id |
6 | | -ms.date: 07/08/2025 |
| 6 | +ms.date: 07/16/2025 |
7 | 7 | ms.custom: sap:Problem with using the Graph SDK - libraries |
8 | 8 | ms.topic: how-to |
9 | 9 | --- |
@@ -90,11 +90,11 @@ The complete sample code is available in this [GitHub repository](https://github |
90 | 90 | } |
91 | 91 | ``` |
92 | 92 |
|
93 | | -The sample application uses both a `GET` and `POST` requests to show logging the complete HTTP requests and responses, including headers and body. The following four helper functions are used to get the information for each part. Any function can be commented out if the corresponding information isn't required. |
| 93 | +The sample application uses both `GET` and `POST` requests to show logging of the complete HTTP requests and responses, including headers and body. The following four helper functions are used to get the information for each part. Any function can be commented out if the corresponding information isn't required. |
94 | 94 |
|
95 | 95 | :::image type="content" source="media/enable-logging-for-msal-and-microsoft-graph/helper-functions.png" alt-text="Screenshot that shows four helper functions"::: |
96 | 96 |
|
97 | | -These helper functions are used in the logging `HttpClient` message handler as shown below. Requests are logged before calling the `DelegatingHandler.SendAsync` method and responses are logged after the call. |
| 97 | +These helper functions are used in the logging `HttpClient` message handler as shown here. Requests are logged before calling the `DelegatingHandler.SendAsync` method and responses are logged after the call. |
98 | 98 |
|
99 | 99 | ```csharp |
100 | 100 | public class SeriLoggingHandler : DelegatingHandler |
@@ -163,12 +163,12 @@ IPublicClientApplication publicClientApplication = PublicClientApplicationBuilde |
163 | 163 | After you run the sample application, Microsoft Graph requests and responses should appear in: |
164 | 164 |
|
165 | 165 | - The console window. |
166 | | -- The directory location configured in the `appsettings.json` file. Log file names include the date, as shown below: |
| 166 | +- The directory location configured in the `appsettings.json` file. Log file names include the date, as shown here: |
167 | 167 |
|
168 | 168 | :::image type="content" source="media/enable-logging-for-msal-and-microsoft-graph/local-microsoft-graph-logs.png" alt-text="Screenshot that shows local logs"::: |
169 | 169 |
|
170 | 170 | For Azure Blob Storage logging, the logs are in the `msallogs` and `msgraphlogs` containers: |
171 | 171 |
|
172 | 172 | :::image type="content" source="media/enable-logging-for-msal-and-microsoft-graph/azure-blob-storage-logs.png" alt-text="Screenshot that shows Azure Blob Storage logs"::: |
173 | 173 |
|
174 | | -[!INCLUDE [Azure Help Support](../../../includes/azure-help-support.md)] |
| 174 | +[!INCLUDE [Azure Help Support](../../../includes/azure-help-support.md)] |
0 commit comments