Handle Logs Level and Preferred Outputs#

A specific set of components were created to handle the Sidewalk logs. You can find more information about these components in the Amazon Sidewalk Software Component Documentation.

The purpose of this group of software components is to facilitate the redirection of app, stack, or PAL logs to VCOM or separate RTT terminals. It consists of six components, all dependent on the Log component and available in both RTT and UART versions: Sidewalk Log: App, Sidewalk Log: PAL, and Sidewalk Log: stack.

There are three distinct layers (app, stack, and PAL) whose log configurations can be managed independently. This per-layer configuration includes the following three aspects:

  • Enabling or disabling logs

  • Changing the severity level

  • Changing the RTT terminal ID (specific to logs redirected to the RTT interface)

At least one software component (RTT or VCOM) per layer must be selected. To completely disable the logs, the chosen component can be configured accordingly. By default, all applications use the RTT interface to display logs.

Sidewalk Logs - Configuration exampleSidewalk Logs - Configuration example

To display logs or switch the log output from RTT to UART, refer to Testing and Debugging documentation.