diff options
| author | transtrike <transtrike@gmail.com> | 2021-04-02 11:30:02 +0300 |
|---|---|---|
| committer | transtrike <transtrike@gmail.com> | 2021-04-02 11:30:02 +0300 |
| commit | fb421f1ab78c1358af5dddc467db7ab02a59110d (patch) | |
| tree | 19121c667790ade144c91133512ab57b0541ef48 /src/Web/DevHive.Web/appsettings.json | |
| parent | 0cf2a3c99141f878168271e53999cdacac95f3c4 (diff) | |
| download | DevHive-fb421f1ab78c1358af5dddc467db7ab02a59110d.tar DevHive-fb421f1ab78c1358af5dddc467db7ab02a59110d.tar.gz DevHive-fb421f1ab78c1358af5dddc467db7ab02a59110d.zip | |
Introduced Logger; Replaced DevExcHandler with Custom; Logging Errors to
file; Replaced Console logger for requests
Diffstat (limited to 'src/Web/DevHive.Web/appsettings.json')
| -rw-r--r-- | src/Web/DevHive.Web/appsettings.json | 38 |
1 files changed, 33 insertions, 5 deletions
diff --git a/src/Web/DevHive.Web/appsettings.json b/src/Web/DevHive.Web/appsettings.json index 036af82..84d534d 100644 --- a/src/Web/DevHive.Web/appsettings.json +++ b/src/Web/DevHive.Web/appsettings.json @@ -12,11 +12,39 @@ "apiKey": "488664116365813", "apiSecret": "" }, - "Logging": { - "LogLevel": { + "Serilog": { + "Using": [], + "LevelSwitches": { + "$consoleSwitch": "Verbose", + "$fileSwitch": "Error" + }, + "MinimumLevel": { "Default": "Information", - "Microsoft": "Warning", - "Microsoft.Hosting.Lifetime": "Information" - } + "Override": { + "Microsoft": "Warning", + "System": "Warning" + } + }, + "Enrich": [ + "FromLogContext", + "WithMachineName", + "WithProcessId", + "WithThreadId" + ], + "WriteTo": [ + { + "Name": "Console", + "Args": { + "levelSwitch": "$consoleSwitch" + } + }, + { + "Name": "File", + "Args": { + "path": "./Logs/errors.log", + "levelSwitch": "$fileSwitch" + } + } + ] } } |
