aboutsummaryrefslogtreecommitdiff
path: root/src/Web/DevHive.Web/appsettings.json
diff options
context:
space:
mode:
Diffstat (limited to 'src/Web/DevHive.Web/appsettings.json')
-rw-r--r--src/Web/DevHive.Web/appsettings.json38
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"
+ }
+ }
+ ]
}
}