I have a .net5.0 console app using Serilog via the...
Log.Logger = new LoggerConfiguration()
.ReadFrom.Configuration(config)
.CreateLogger();
All working fine in dev. When I publish using "Produce single file", the app works, but the logging doesn't. I am logging to file and console... I see neither.
If I publish without using the single file, the logging works OK.
At first I thought it was an issue with reading the appsettings.json, but some simple Console.Writeline confirms the appsettings file is being read OK (at least from the app itself, can I confirm any way that Serilog is reading it OK?)