Logging

Working with Logging

By default, APM OT Connect services will log all WARN level messages to a logfile corresponding to that service.

If you need more detailed or targeted logs, you can add any number of blocks to the Logging array in appsettings.json.

Table 1. Logging
FieldDescriptionDefaultExampleRequired?
PatternWildcard pattern corresponding to the subcomponent being troubleshot*APM.Messagbus.*No
LoggingLevelStandard logging level to capture in the target logWarnDebugNo
LoggingModeLog in human-readable Text, machine readable Json, or All(in separate files)AllTextNo

Example

"Logging": [
    {
      "Pattern": "*",
      "LoggingLevel": "Debug",
      "LoggingMode": "All"

    }
  ]