Matter diagnostic logs snippet (matter-diagnostic-logs)

To build with this snippet, follow the instructions in the Using Snippets page.

When using nRF Connect for VS Code select the matter-diagnostic-logs snippet from the list in the Snippets menu.

Overview

The Matter diagnostic logs snippet enables the set of configurations needed for full Matter diagnostic logs support. The configuration set consists of devicetree overlays for each supported target board and a config file that enables all diagnostic logs features by default. The devicetree overlays add new RAM partitions that are configured as retained to keep the log data persistent and survive the device reboot. They also reduce the SRAM size according to the size of the retained partition. The partition sizes are configured using example values and might not be sufficient for all use cases. To change the partition sizes, you need to change the configuration in the devicetree overlay. You can, for example, increase the partition sizes to be able to store more logs.

The snippet sets the following Kconfig options:

Deferred logs mode (CONFIG_LOG_MODE_DEFERRED) is enabled, because it is required by the log redirection functionality (CONFIG_NCS_SAMPLE_MATTER_DIAGNOSTIC_LOGS_REDIRECT), which is enabled by default for diagnostic network and end-user logs.

Note

You cannot set the CONFIG_NCS_SAMPLE_MATTER_DIAGNOSTIC_LOGS Kconfig option separately without adding the devicetree overlays contained in the snippet. Instead, if you want to use just some of the diagnostic logs functionality, use the snippet and set the Kconfig options for the other functionalities to n.

To use the snippet when building a sample:

When using nRF Connect for VS Code select the matter-diagnostic-logs snippet from the list in the Snippets menu.