Logging Configuration

The logging configuration settings used are stored in the NLog.config file, which by default is located in C:\LS Retail\LSCommerce\LSCommerceService\. The logger “minlevel” key determines how much logging is done. It can be Trace, Debug, Info, and Error. Default setup is Debug, but production “minlevel” should be Error. By setting the minlevel to:

  • Error: Only logs the error
  • Info: Error + logs information about the WCF web requests
  • Debug: Info + all the web service calls to LS Nav/Central are logged (Request and Response XML)
    • Very helpful to see the XML sent to the LS Nav/Central web service
    • Logs how long the LS Nav/Central web service call took to execute
    • Logs the incoming data in the WCF web requests
  • Trace: Debug + all the sql statements are logged

The logger uses the NLog logging platform, see http://nlog-project.org/. For more details about the configuration file, see https://github.com/nlog/NLog/wiki/Configuration-file.