Created
February 4, 2017 21:34
-
-
Save Kikimora/8b98afa0e91995bc9008a28add8d5e2e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Serilog": { | |
//Using is required for Serilog to find location of Debug configuration method | |
"Using": [ "Avend.Common" ], | |
"WriteTo": [ | |
{ | |
"Name": "Console", | |
"Args": { | |
"outputTemplate": "[{Level:u3}] {Timestamp:HH:mm:ss} {RequestId} {SourceContext} {Message}{NewLine}{Exception}" | |
} | |
}, | |
{ | |
"Name": "Debug", | |
"Args": { | |
"outputTemplate": "[{Level:u3}] {Timestamp:HH:mm:ss} {RequestId} {SourceContext} {Message}{NewLine}{Exception}" | |
} | |
}, | |
{ | |
"Name": "RollingFile", | |
"Args": { | |
"formatter": "Serilog.Formatting.Compact.CompactJsonFormatter, Serilog.Formatting.Compact", | |
"pathFormat": "logs\\log-{Date}.txt" | |
} | |
} | |
], | |
"Enrich": [ "FromLogContext" ], | |
"MinimumLevel": { | |
"Default": "Debug", | |
"Override": { | |
"Microsoft": "Warning", | |
"System": "Warning" | |
} | |
} | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment