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": "AircraftCarrier.EntityWarship",
|
||
"transformation": "r => new { BodyColor = r.BodyColor.Name, r.Speed, r.Weight }"
|
||
}
|
||
},
|
||
{
|
||
"Name": "ByTransforming",
|
||
"Args": {
|
||
"returnType": "AircraftCarrier.EntityAircraftCarrier",
|
||
"transformation": "r => new { BodyColor = r.BodyColor.Name, DopColor = r.DopColor, r.BodyKit, r.Сabin, r.SuperEngine, r.Speed, r.Weight }"
|
||
}
|
||
},
|
||
{
|
||
"Name": "ToMaximumDepth",
|
||
"Args": { "maximumDestructuringDepth": 4 }
|
||
},
|
||
{
|
||
"Name": "ToMaximumStringLength",
|
||
"Args": { "maximumStringLength": 100 }
|
||
},
|
||
{
|
||
"Name": "ToMaximumCollectionCount",
|
||
"Args": { "maximumCollectionCount": 10 }
|
||
}
|
||
],
|
||
"Properties": {
|
||
"Application": "AircraftCarrier"
|
||
}
|
||
}
|
||
} |