Logging of information is important for troubleshooting of services. The following logging options are available:
"Serilog": {
"Using": [ "Serilog.Sinks.Console" ],
"MinimumLevel": "Information",
"EnableAppInsight": false,
"InsightKey": "",
"EventLogRestrictedToMinimumLevel": "Warning",
"EventLogOutputTemplate": "{Message}{NewLine}{Exception}",
"EventLogManageEventSource": false,
"WriteTo": [
{ "Name": "Console" },
{
"Name": "File",
"Args": {
"path": ".\\Logs\\ResultSenderLog_.txt",
"outputTemplate": "{Timestamp:o} [{Level:u3}] ({Application}/{MachineName}) {Message}{NewLine}{Exception}",
"rollingInterval": "Day",
"fileSizeLimitBytes": "2097152",
"rollOnFileSizeLimit": true,
"retainedFileCountLimit": 2000
}
}
],
"Enrich": [ "FromLogContext", "WithMachineName", "WithThreadId" ],
"Properties": {
"Application": "ATS.CM4D.ResultsSender",
"MachineName": "MachineATS"
}
}
Can we improve this topic?