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:
parent
0968c20d4d
commit
c3666cdcf1
|
|
@ -17,6 +17,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
using Serilog;
|
using Serilog;
|
||||||
|
using Serilog.Events;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
|
|
@ -51,7 +52,7 @@ class Program
|
||||||
// Configure logger
|
// Configure logger
|
||||||
Log.Logger = new LoggerConfiguration()
|
Log.Logger = new LoggerConfiguration()
|
||||||
.MinimumLevel.Debug()
|
.MinimumLevel.Debug()
|
||||||
.WriteTo.Console()
|
.WriteTo.Console(restrictedToMinimumLevel: LogEventLevel.Information)
|
||||||
.WriteTo.File("log.log")
|
.WriteTo.File("log.log")
|
||||||
.CreateLogger();
|
.CreateLogger();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user