From c3666cdcf138bdb4132787b5590fb8605068f5d8 Mon Sep 17 00:00:00 2001 From: Robert Morrison Date: Tue, 21 Jun 2022 22:35:58 +0100 Subject: [PATCH] Make Console logging less messy This change moves the more verbose debug logging into the logfile making the console output easier to read TODO: Write a proper interface --- Program.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Program.cs b/Program.cs index 4f04ee1..42aa65b 100644 --- a/Program.cs +++ b/Program.cs @@ -17,6 +17,7 @@ */ using Serilog; +using Serilog.Events; using System.Reflection; using System.Text.RegularExpressions; using System.Diagnostics; @@ -51,7 +52,7 @@ class Program // Configure logger Log.Logger = new LoggerConfiguration() .MinimumLevel.Debug() - .WriteTo.Console() + .WriteTo.Console(restrictedToMinimumLevel: LogEventLevel.Information) .WriteTo.File("log.log") .CreateLogger();