chore(debug): set minlevel for DEBUG config

This commit is contained in:
Oliver Booth 2023-08-15 17:05:16 +01:00
parent d9c6034aa0
commit fe4701c1bf
Signed by: oliverbooth
GPG Key ID: B89D139977693FED

View File

@ -10,6 +10,9 @@ using Serilog;
Log.Logger = new LoggerConfiguration() Log.Logger = new LoggerConfiguration()
.WriteTo.Console() .WriteTo.Console()
.WriteTo.File("logs/latest.log", rollingInterval: RollingInterval.Day) .WriteTo.File("logs/latest.log", rollingInterval: RollingInterval.Day)
#if DEBUG
.MinimumLevel.Debug()
#endif
.CreateLogger(); .CreateLogger();
WebApplicationBuilder builder = WebApplication.CreateBuilder(args); WebApplicationBuilder builder = WebApplication.CreateBuilder(args);