Get an ILogger instance for App Insights from ServiceCollection in a WebForms .NET Framework application – Asp.net
We want to get an ILogger instance so that it can be passed to other library. We tried below, but the ILogger instance does not log into Application Insights. It logs into Event Viewer successfully. var serviceCollection = new ServiceCollection();…