Fixed exception throwing stuff idunno
This commit is contained in:
parent
0005f3d74b
commit
23459ec794
3 changed files with 6 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue