42979dc5ae
Add webfront logging
49 lines
1014 B
JSON
49 lines
1014 B
JSON
{
|
|
"Serilog": {
|
|
"Using": [
|
|
"Serilog.Sinks.File"
|
|
],
|
|
"MinimumLevel": {
|
|
"Default": "Information",
|
|
"Override": {
|
|
"System": "Warning",
|
|
"Microsoft": "Warning"
|
|
}
|
|
},
|
|
"WriteTo": [
|
|
{
|
|
"Name": "File",
|
|
"Args": {
|
|
"path": "Log/IW4MAdmin-Application.log",
|
|
"rollingInterval": "Day",
|
|
"outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff} {Server} {Level:u3}] {Message:lj}{NewLine}{Exception}"
|
|
}
|
|
}
|
|
],
|
|
"Enrich": [
|
|
"FromLogContext",
|
|
"WithMachineName",
|
|
"WithThreadId"
|
|
],
|
|
"Destructure": [
|
|
{
|
|
"Name": "ToMaximumDepth",
|
|
"Args": {
|
|
"maximumDestructuringDepth": 4
|
|
}
|
|
},
|
|
{
|
|
"Name": "ToMaximumStringLength",
|
|
"Args": {
|
|
"maximumStringLength": 1000
|
|
}
|
|
},
|
|
{
|
|
"Name": "ToMaximumCollectionCount",
|
|
"Args": {
|
|
"maximumCollectionCount": 24
|
|
}
|
|
}
|
|
]
|
|
}
|
|
} |