Show logging and update packages

This commit is contained in:
2021-06-24 14:58:17 +02:00
parent 8c14e25305
commit 776221b4fb
8 changed files with 47 additions and 15 deletions

View File

@@ -18,5 +18,34 @@
"SayHelloWorldJob": {
"CronExpression": "*/30 * * * * ? *",
"Name": "Example Job"
},
"Serilog": {
"Using": [ "Serilog.Sinks.Console", "Serilog.Sinks.RollingFile" ],
"MinimumLevel": {
"Default": "Debug",
"Override": {
"Microsoft": "Debug",
"System": "Debug"
}
},
"WriteTo": [
{
"Name": "Console",
"Args": {
"outputTemplate": "===> {Timestamp:HH:mm:ss} [{Level}] {Message}{NewLine}{Exception}"
}
},
{
"Name": "RollingFile",
"Args": {
"pathFormat": "bin/Debug/net5.0/Logs/{Date}.log.json",
"formatter": "Serilog.Formatting.Compact.CompactJsonFormatter, Serilog",
"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level}] [{SourceContext}] [{EventId}] {Message}{NewLine}{Exception}",
"retainedFileCountLimit": 90,
"rollingInterval": "Day",
"shared": true
}
}
]
}
}