在 Azure 门户中的何处查找日志信息

Where to find log information in Azure portal

我有以下关于日志记录的代码,日志数据存储在 Azure 的某个地方。可能在 azure 存储帐户中。以下是代码:

private readonly TelemetryClient telemetryClient = new TelemetryClient();
private readonly ILogger logger;
logger = new TraceLogger(telemetryClient);
logger.LogError("Exception in TestService");

现在我尝试在 azure 中搜索 "Exception In TestService" 登录,但我找不到它在哪里。我搜索了存储帐户、blob 容器,但一无所获。关于我应该在 azure 上的何处找到此信息的任何建议。

您似乎正在使用 Azure Application Insights. If so, you can get the data collected by Application Insights on Azure portal. Refer to this document 了解更多详情。