Category "ilogger"

Create log files with Serilog only if their is any logs

I want to write different logs on different log files with Serilog by API request. The problem is when the log file configured within LoggerConfiguration(), the

Use Serilog with Microsoft.Extensions.Logging.ILogger

I've created a .NET Core 3.1 project using a Host, the IoC container with IServiceCollection and implemented logging allover the place using the ILogger<T>