48 lines
1.3 KiB
JSON
48 lines
1.3 KiB
JSON
{
|
|
"Serilog": {
|
|
"Using": [ "Serilog.Sinks.File" ],
|
|
"MinimumLevel": "Information",
|
|
"WriteTo": [
|
|
{
|
|
"Name": "File",
|
|
"Args": {
|
|
"path": "Logs/log_.log",
|
|
"rollingInterval": "Day",
|
|
"outputTemplate": "[{Timestamp:HH:mm:ss.fff}]{Level:u4}: {Message:lj}{NewLine}{Exception}"
|
|
}
|
|
}
|
|
],
|
|
"Enrich": [ "FromLogContext", "WithMachineName", "WithThreadId" ],
|
|
"Destructure": [
|
|
{
|
|
"Name": "ByTransforming",
|
|
"Args": {
|
|
"returnType": "ProjectLocomotive.EntityLocomotive",
|
|
"transformation": "r => new { BodyColor = r.BodyColor.Name, r.Speed, r.Weight }"
|
|
}
|
|
},
|
|
{
|
|
"Name": "ByTransforming",
|
|
"Args": {
|
|
"returnType": "ProjectLocomotive.EntityElectricLocomotive",
|
|
"transformation": "r => new { BodyColor = r.BodyColor.Name, DopColor = r.DopColor.Name, r.ElectroLines, r.ElectroBattery, r.Speed, r.Weight }"
|
|
}
|
|
},
|
|
{
|
|
"Name": "ToMaximumDepth",
|
|
"Args": { "maximumDestructuringDepth": 4 }
|
|
},
|
|
{
|
|
"Name": "ToMaximumStringLength",
|
|
"Args": { "maximumStringLength": 100 }
|
|
},
|
|
{
|
|
"Name": "ToMaximumCollectionCount",
|
|
"Args": { "maximumCollectionCount": 15 }
|
|
}
|
|
],
|
|
"Properties": {
|
|
"Application": "ProjectLocomotive"
|
|
}
|
|
}
|
|
} |