Is it possible to use an ILogger log in a .Net Framework console app? I searched a lot but I wasn't able to find a sample. This is what I came up with so far
var loggerFactory = new LoggerFactory();
//loggerFactory.AddProvider();
var logger = loggerFactory.CreateLogger("Category");
logger.LogInformation("This is a log line");
I don't know how to add a LoggerProvider. Are there providers already implemented for Console and File for .Net Framework or they are only for Core?
Do I need to implement my own providers?