You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/azure/sdk/logging.md
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Logging with the Azure SDK for .NET
3
3
description: Learn how to enable logging with the Azure SDK for .NET client libraries
4
-
ms.date: 08/26/2022
4
+
ms.date: 11/02/2022
5
5
ms.custom: devx-track-dotnet
6
6
ms.author: casoper
7
7
author: camsoper
@@ -118,6 +118,12 @@ The following table depicts how the Azure SDK for .NET `EventLevel` maps to the
118
118
119
119
Using the Azure Service Bus library as an example, complete the following steps:
120
120
121
+
1. Install the [Microsoft.Extensions.Azure](https://www.nuget.org/packages/Microsoft.Extensions.Azure) NuGet package:
122
+
123
+
```dotnetcli
124
+
dotnet add package Microsoft.Extensions.Azure
125
+
```
126
+
121
127
1. Register the Azure SDK library's client via a call to the <xref:Microsoft.Extensions.Azure.AzureClientServiceCollectionExtensions.AddAzureClients%2A> extension method:
122
128
123
129
```csharp
@@ -159,6 +165,12 @@ There are scenarios in which [registering an Azure SDK library's client with the
159
165
160
166
In these scenarios, complete the following steps:
161
167
168
+
1. Install the [Microsoft.Extensions.Azure](https://www.nuget.org/packages/Microsoft.Extensions.Azure) NuGet package:
169
+
170
+
```dotnetcli
171
+
dotnet add package Microsoft.Extensions.Azure
172
+
```
173
+
162
174
1. Register the log forwarder service as a singleton in the DI container:
0 commit comments