Skip to content

Commit be87042

Browse files
authored
Add missing NuGet package installation step (#32151)
1 parent 9715618 commit be87042

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

docs/azure/sdk/logging.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Logging with the Azure SDK for .NET
33
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
55
ms.custom: devx-track-dotnet
66
ms.author: casoper
77
author: camsoper
@@ -118,6 +118,12 @@ The following table depicts how the Azure SDK for .NET `EventLevel` maps to the
118118

119119
Using the Azure Service Bus library as an example, complete the following steps:
120120

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+
121127
1. Register the Azure SDK library's client via a call to the <xref:Microsoft.Extensions.Azure.AzureClientServiceCollectionExtensions.AddAzureClients%2A> extension method:
122128
123129
```csharp
@@ -159,6 +165,12 @@ There are scenarios in which [registering an Azure SDK library's client with the
159165
160166
In these scenarios, complete the following steps:
161167
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+
162174
1. Register the log forwarder service as a singleton in the DI container:
163175
164176
:::code language="csharp" source="snippets/logging/Program.cs" id="RegisterServiceWithDI" highlight="8":::

0 commit comments

Comments
 (0)