Using .Net Core programming model of ILogger and DI in legacy .Net Framework applications with limited scope to change
- This shows how a legacy .Net Framework console program can be modernized with DI and ILogger usage
- This shows how a legacy .Net Framework WebAPI application can be modernized with DI and ILogger usage
For using modern DI with legacy ASP.Net MVC apps refer this sample
The file needs to be in the PWD to configure logging.
- ConfigureServices needs to be modified to add application insights.