Instantly share code, notes, and snippets.

Embed
What would you like to do?
"Serilog": {
"MinimumLevel": "Information",
"WriteTo": [
{
"Name": "Async",
"Args": {
"configure": [
{
"Name": "Console",
"Args": {
"formatter": "Serilog.Formatting.Compact.CompactJsonFormatter, Serilog.Formatting.Compact",
"outputTemplate": "===> {Timestamp:HH:mm:ss.fff} [{Application}] [{Level}] {Message}{NewLine}{Exception}"
}
},
{
"Name": "RollingFile",
"Args": {
"pathFormat": "trace-{Date}.log",
"formatter": "Serilog.Formatting.Compact.CompactJsonFormatter, Serilog.Formatting.Compact",
"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff} [{Application}] [{Level}] {Message}{NewLine}{Exception}",
"fileSizeLimitBytes": 500000,
"retainedFileCountLimit": 7 /* One file per day on a week */
}
}
]
}
}
],
"Properties": {
"Application": "Taskin",
"Environment": "Development"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment