Thursday, July 26, 2018

Sitecore Experience Commerce - Engine is not generating any log files

After an upgrade from Experience Commerce 9 update 1 to update 2, all 4 of my commerce engine roles were not generating any log files and in fact the logs folder did not exist at all. The engines were running as expected and bootstraps were successful, the issue came down to configuration.

Inside the config.json configuration file, there was an incorrect Serilog configuration.
"Serilog": {
 "Using": [ "Serilog.Sinks.Literate", "Serilog.Sinks.File" ],
 "MinimumLevel": {
  "Default": "Information",
  "Override": {
   "Microsoft": "Information",
   "System": "Information"
  }
 },
 "WriteTo": [
  {
   "Name": "Async",
   "Args": {
    "configure": [
     {
      "Name": "LiterateConsole"
     }
    ]
   }
  }
 ],
 "FileSizeLimitBytes": 100000000
},
The snipped from the configuration file above, incorrectly had the WriteTo section. By removing this section and restarting the IIS website, the commerce engine began to generate log files as expected.

No comments:

Post a Comment