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
I hope you already created a 4.8 Web Application. Follow the workaround to add Application Insights in your Web Application Project.
Install the Application Insights Package Microsoft.ApplicationInsights in your application using NuGet Package Manager.
Configure Application insights in your Web Applicaiton:
Right click of your project and click Configure Application Insights
It will ask you to choose Configure Application Insights either local or Azure. Choose as per your requirement.
It will configure your Web App into Application Insights. It adds the ApplicationInsights.config file which contains the configuration of Application Insights.
After the configuration done we can see the telemetry data in Application Insights