-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserilogSettings.json
More file actions
37 lines (37 loc) · 925 Bytes
/
Copy pathserilogSettings.json
File metadata and controls
37 lines (37 loc) · 925 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
"AllowedHosts": "*",
"Serilog": {
"Using": [ "Serilog.Exceptions" ],
"MinimumLevel": {
"Default": "Information",
"Override": {
"Microsoft": "Warning",
"System": "Warning"
}
},
"Enrich": [ "FromLogContext", "WithMachineName", "WithProcessId", "WithThreadId", "WithExceptionDetails" ],
"WriteTo": [
{ "Name": "Console" },
{
"Name": "File",
"Args": {
"path": "X:\\Logs\\MBDEVpro\\CustomerAPI\\Log.txt",
"outputTemplate": "{Timestamp:G} {Message}{NewLine:1}{Exception:1}"
}
},
{
"Name": "File",
"Args": {
"path": "X:\\Logs\\MBDEVpro\\CustomerAPI\\log.json",
"formatter": "Serilog.Formatting.Json.JsonFormatter, Serilog"
}
},
{
"Name": "Seq",
"Args": {
"serverUrl": "http://localhost:8081"
}
}
]
}
}