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
This commit is contained in:
Robert Morrison 2022-06-21 22:35:58 +01:00
parent 0968c20d4d
commit c3666cdcf1
Signed by: robert
GPG Key ID: 73E012EB3F4EC696

View File

@ -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();