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: articles/azure-monitor/app/ilogger.md
+26-3Lines changed: 26 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -412,16 +412,39 @@ The below code snippet configures logs `Warning` and above from all categories,
412
412
413
413
*ApplicationInsightscapturesandsends `ILogger` logsusingthesame `TelemetryConfiguration` usedforeveryothertelemetry. Thereisanexceptiontothisrule. Thedefault `TelemetryConfiguration` isnotfullysetup when logging something from `Program.cs` or `Startup.cs` itself, so logs from these places will not have the default configuration, and hence will not be running all the `TelemetryInitializer`s and `TelemetryProcessor`s.
>Pleasenotethat, ifthepackageMicrosoft.ApplicationInsights.AspNetCorepackageisusedtoenableApplicationInsights, thentheaboveexampleshouldbemodifiedtoget `TelemetryClient` directlyintheconstructor. See [this](https://docs.microsoft.com/azure/azure-monitor/app/asp-net-core-no-visualstudio#frequently-asked-questions) for full example.
*5. Idon't have SDK installed, and I use Azure Web App Extension to enable Application Insights for my Asp.Net Core applications. How do I use the new provider?*
443
+
*7. Idon't have SDK installed, and I use Azure Web App Extension to enable Application Insights for my Asp.Net Core applications. How do I use the new provider?*
0 commit comments