How to log to a file without using third party logger (serilog, elmah etc.) in .NET CORE?
public void ConfigureSer
Unfortunately, it not possible with the current version of ILogger.
As @Vitaliy Fedorchenko mentioned in his post, the issue http://github.com/aspnet/Logging/issues/441 has been closed after recommending to use 3rd party file loggers. However, most of the file loggers out there are heavyweight (like Serilog) with limited configuration options. Unlike those libraries, Karambolo.Extensions.Logging.File provides an incredible functionality with a huge set of configuration options, which allows multiple logging providers with multiple files for each one.
This class library contains a lightweight implementation of the Microsoft.Extensions.Logging.ILoggerProvider interface for file logging. Runs on all .NET platforms which implement .NET Standard 2.0+ including .NET Core 2 (ASP.NET Core 2.1+) and .NET Core 3 (ASP.NET Core 3.0+).
See the documentation for more informations.