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
1 changed files with 3 additions and 0 deletions

View File

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