I am embarrassed but I could not get a working ILogger instance to log to the console. I expected this to be achievable with 3, 4 lines. Tried several different approaches, following different posts/articles, nothing !
Using Serilog, however, gives the desired results, easily.
var serilog = new LoggerConfiguration()
.WriteTo.File("Logs\\tests.txt", rollingInterval: RollingInterval.Day)
var logger = new LoggerFactory().AddSerilog(serilog).CreateLogger<LinuxStartUpAndUpdaterManager>();