From fe4701c1bf5012ccaf74db2ce58806c07962a5e8 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Tue, 15 Aug 2023 17:05:16 +0100 Subject: [PATCH] chore(debug): set minlevel for DEBUG config --- OliverBooth/Program.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OliverBooth/Program.cs b/OliverBooth/Program.cs index 65f6d98..0dffe03 100644 --- a/OliverBooth/Program.cs +++ b/OliverBooth/Program.cs @@ -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);