[英]Application insights configuration in asp.net 4.8 web application
how can we configure application insights in asp.net 4.8 web application which has the entry point as global.asax.cs I need to pull out the logging in separate project and use Logger factor with Microsoft.Extensions.Logging我们如何在 asp.net 4.8 web 应用程序中配置应用程序洞察力,其入口点为global.asax.cs我需要在单独的项目中提取日志记录并使用Microsoft.Extensions.Logging的 Logger 因子
I hope you already created a 4.8 Web Application .我希望您已经创建了4.8 Web 应用程序。 Follow the workaround to add Application Insights in your Web Application Project.
按照解决方法在 Web 应用程序项目中添加 Application Insights。
Install the Application Insights Package Microsoft.ApplicationInsights in your application using NuGet Package Manager.使用 NuGet Package 管理器在您的应用程序中安装 Application Insights Package Microsoft.ApplicationInsights 。
Configure Application insights in your Web Applicaiton:在 Web 应用程序中配置应用程序洞察:
Right click of your project and click Configure Application Insights右键单击您的项目,然后单击配置 Application Insights
It will ask you to choose Configure Application Insights either local or Azure .它将要求您选择本地或Azure配置 Application Insights 。 Choose as per your requirement.
根据您的要求选择。
It will configure your Web App into Application Insights.它会将您的 Web 应用程序配置到 Application Insights 中。 It adds the ApplicationInsights.config file which contains the configuration of Application Insights.
它添加了ApplicationInsights.config文件,其中包含 Application Insights 的配置。
After the configuration done we can see the telemetry data in Application Insights配置完成后,我们可以在 Application Insights 中看到遥测数据
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.