Show logging and update packages
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user