OpenThread:NRFX_LOG_INFO() / NRF_LOG_INFO() - 如何启用它们?

OpenThread: NRFX_LOG_INFO() / NRF_LOG_INFO() - How to enable them?

我有一个问题。我想使用 USB 日志宏之一,如 NRFX_LOG_INFO()NRF_LOG_INFO()。但是当我在 sdk_config.h 中设置 NRF_LOG_ENABLED 1 并将 nrf_log.h 包含到我的 openthread/examples/platforms/nrf528xx/src/` 文件中时,我收到以下错误:

rf_log.h:55:10: fatal error: nrf_strerror.h: No such file or directory
 #include "nrf_strerror.h"
          ^~~~~~~~~~~~~~~~
compilation terminated.

我应该怎么做才能启用此功能?

如 Github 问题所述:https://github.com/openthread/openthread/issues/5285

In OpenThread repository the NRF_LOG module is not usable (only stubbed). For logging purpose, you can use either OpenThread's otPlatLog functionality in vanilla OpenThread, or download the nRF5 SDK for Thread and Zigbee which gives you full functionality of NRF Logger.