在 Visual Studio 中,选择“安装 ASP.NET Core 日志记录集成站点扩展”有什么作用?

问题描述 投票:0回答:1

在 Visual Studio 中发布 ASP.Net Core 网站项目时,在“站点扩展选项”下,我会看到以下选项:

选择该选项有什么作用?我的项目已包含

Microsoft.ApplicationInsights.AspNetCore
NuGet 包,并且通过
Microsoft.Extensions.Logging.Ilogger
扩展方法进行日志记录可按预期将日志记录信息发送到 Application Insights。

azure asp.net-core azure-application-insights
1个回答
0
投票

在.Indigo.Health

因此,当您使用 Azure Application Insights 登录 ASP.NET Core Web 应用程序时,Visual Studio 中的“安装 ASP.NET Core 日志记录集成站点扩展”就是为了让您的生活更轻松。它有助于在发布过程中设置称为 Application Insights Profiler 的东西。此探查器为你提供有关应用程序在 Azure 中运行时的性能和问题的额外详细信息。它只是帮助您从 Application Insights 中获得更多信息。

简单地回答一下,如果您的日志记录已经很好并且您不需要超级详细的分析,您可能不需要费心它,但如果您愿意,可以启用它,它可以方便地进行一些额外的故障排除。

© www.soinside.com 2019 - 2024. All rights reserved.