Skip to content

Instantly share code, notes, and snippets.

@juanluelguerre
Created October 12, 2018 18:36
Show Gist options
  • Save juanluelguerre/c51595a3f26a71a0ea84b345e9b88977 to your computer and use it in GitHub Desktop.
Save juanluelguerre/c51595a3f26a71a0ea84b345e9b88977 to your computer and use it in GitHub Desktop.
"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