How to log to a file without using third party logger (serilog, elmah etc.) in .NET CORE?
public void ConfigureSer
The ones provided by Adam and Vitaliy are still probably the most simple ones to date (thanks guys btw!).
Since an external NuGet is necessary anyway, worth mentioning that there is also a "standalone" extension of the Serilog rolling file sink that can be simply used as a logging provider for .net core, without completely swapping out the logging pipeline (pulls other dependencies, but I don't see that as an issue if you need the few extra features provided)
As of March 2020, this is the complete picture:
https://www.nuget.org/packages/Karambolo.Extensions.Logging.File
https://www.nuget.org/packages/NReco.Logging.File
https://www.nuget.org/packages/Serilog.Extensions.Logging.File