Fixed exception throwing stuff idunno

This commit is contained in:
Jeddunk 2021-02-15 16:51:50 +01:00
parent 0005f3d74b
commit 23459ec794
3 changed files with 6 additions and 1 deletions

View file

@ -1,5 +1,6 @@
using Serilog;
using Serilog.Core;
using Serilog.Exceptions;
namespace auto_creamapi.Utils
{
@ -7,6 +8,7 @@ namespace auto_creamapi.Utils
{
public static readonly Logger Log = new LoggerConfiguration()
.MinimumLevel.Debug()
.Enrich.WithExceptionDetails()
.WriteTo.Console()
.WriteTo.File("autocreamapi.log", rollingInterval: RollingInterval.Day)
.CreateLogger();