Skip to content

Commit 64d34a1

Browse files
Merge pull request #222565 from v-jbasden/jbasden-clarify-packages
Clarifying Microsoft.Extensions.Logging.ApplicationInsights package
2 parents 38b882c + ff30969 commit 64d34a1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

articles/azure-monitor/app/asp-net-core.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ We'll use an [MVC application](/aspnet/core/tutorials/first-mvc-app) example. If
2828
2929
[!INCLUDE [azure-monitor-log-analytics-rebrand](../../../includes/azure-monitor-instrumentation-key-deprecation.md)]
3030

31+
> [!NOTE]
32+
> You can also use the Microsoft.Extensions.Logging.ApplicationInsights package to capture logs. For more information, see [Application Insights logging with .NET](ilogger.md). For an example, see [Console application](ilogger.md#console-application).
33+
3134
## Supported scenarios
3235

3336
The [Application Insights SDK for ASP.NET Core](https://nuget.org/packages/Microsoft.ApplicationInsights.AspNetCore) can monitor your applications no matter where or how they run. If your application is running and has network connectivity to Azure, telemetry can be collected. Application Insights monitoring is supported everywhere .NET Core is supported and covers the following scenarios:

articles/azure-monitor/app/ilogger.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ namespace WebApplication
226226

227227
## Console application
228228

229+
The following example uses the Microsoft.Extensions.Logging.ApplicationInsights package. The Microsoft.Extensions.Logging.ApplicationInsights package should be used in a console application or whenever you want a bare minimum implementation of Application Insights without the full feature set such as metrics, distributed tracing, sampling, and telemetry initializers.
230+
229231
Here are the installed packages:
230232

231233
```xml
@@ -284,7 +286,7 @@ namespace ConsoleApp
284286

285287
```
286288

287-
The preceding example uses the `Microsoft.Extensions.Logging.ApplicationInsights` package. By default, this configuration uses the "bare minimum" `TelemetryConfiguration` setup for sending data to Application Insights: the `InMemoryChannel` channel. There's no sampling and no standard `TelemetryInitializer` instance. You can override this behavior for a console application, as the following example shows.
289+
The previous example demonstrates the default behavior for a console application. As the following example shows, you can override this default behavior.
288290

289291
Also install this package:
290292

0 commit comments

Comments
 (0)