Logging Http in file but not in database using Serilog I have a ASP.NET core web API where I’m using Serilog to do the logging.