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/asp-net-trace-logs.md
+9-11Lines changed: 9 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,14 +4,13 @@ description: Search logs generated by Trace, NLog, or Log4Net.
4
4
ms.topic: conceptual
5
5
ms.devlang: csharp
6
6
ms.custom: devx-track-csharp
7
-
ms.date: 03/22/2023
7
+
ms.date: 04/18/2023
8
8
ms.reviewer: casocha
9
9
---
10
10
11
-
12
11
# Explore .NET/.NET Core and Python trace logs in Application Insights
13
12
14
-
Send diagnostic tracing logs for your ASP.NET/ASP.NET Core application from ILogger, NLog, log4Net, or System.Diagnostics.Trace to [Azure Application Insights][start]. For Python applications, send diagnostic tracing logs by using AzureLogHandler in OpenCensus Python for Azure Monitor. You can then explore and search for them. Those logs are merged with the other log files from your application. You can use them to identify traces that are associated with each user request and correlate them with other events and exception reports.
13
+
Send diagnostic tracing logs for your ASP.NET/ASP.NET Core application from ILogger, NLog, log4Net, or System.Diagnostics.Trace to Azure Application Insights. For Python applications, send diagnostic tracing logs by using AzureLogHandler in OpenCensus Python for Azure Monitor. You can then explore and search for them. Those logs are merged with the other log files from your application. You can use them to identify traces that are associated with each user request and correlate them with other events and exception reports.
15
14
16
15
> [!NOTE]
17
16
> Do you need the log-capture module? It's a useful adapter for third-party loggers. But if you aren't already using NLog, log4Net, or System.Diagnostics.Trace, consider calling [**Application Insights TrackTrace()**](./api-custom-events-metrics.md#tracktrace) directly.
@@ -38,7 +37,7 @@ Install your chosen logging framework in your project, which should result in an
38
37
39
38
## Configure Application Insights to collect logs
40
39
41
-
[Add Application Insights to your project](./asp-net.md) if you haven't done that yet. You'll see an option to include the log collector.
40
+
[Add Application Insights to your project](./asp-net.md) if you haven't done that yet and there is an option to include the log collector.
42
41
43
42
Or right-click your project in Solution Explorer to **Configure Application Insights**. Select the **Configure trace collection** option.
44
43
@@ -167,7 +166,7 @@ You can also add a severity level to your message. And, like other telemetry, yo
In your app's overview pane in the [Application Insights portal][portal], select [Search][diagnostic].
193
+
In your app's overview pane in the Application Insights portal, select **Transaction Search**.
195
194
196
195
You can, for example:
197
196
@@ -231,7 +230,7 @@ The Application Insights Java agent collects logs from Log4j, Logback, and java.
231
230
232
231
### <aname="emptykey"></a>Why do I get the "Instrumentation key cannot be empty" error message?
233
232
234
-
You probably installed the logging adapter NuGet package without installing Application Insights. In Solution Explorer, right-click *ApplicationInsights.config*, and select **Update Application Insights**. You'll be prompted to sign in to Azure and create an Application Insights resource or reuse an existing one. That should fix the problem.
233
+
You probably installed the logging adapter NuGet package without installing Application Insights. In Solution Explorer, right-click *ApplicationInsights.config*, and select **Update Application Insights**. You are prompted to sign in to Azure and create an Application Insights resource or reuse an existing one. It should fix the problem.
235
234
236
235
### Why can I see traces but not other events in diagnostic search?
237
236
@@ -247,10 +246,9 @@ Perhaps your application sends voluminous amounts of data and you're using the A
247
246
248
247
## <aname="add"></a>Next steps
249
248
250
-
*[Diagnose failures and exceptions in ASP.NET][exceptions]
251
-
*[Learn more about Search][diagnostic]
252
-
*[Set up availability and responsiveness tests][availability]
253
-
*[Troubleshooting][qna]
249
+
*[Diagnose failures and exceptions in ASP.NET](asp-net-exceptions.md)
250
+
*[Learn more about Transaction Search](diagnostic-search.md)
251
+
*[Set up availability and responsiveness tests](availability-overview.md)
0 commit comments