This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Configure Log Severity for DFU Modules

Hello Dear Community,

Is there a way to reduce the log severity of the modules nrf_dfu_flash or nrf_dfu_settings via define?

Best Regards,

Nico

Parents Reply
  • I don't think we have implemented the macro to disable logging for only the nrf_dfu_flash yet. But you can add something similar to this: 

    #define NRF_LOG_MODULE_NAME nrf_sdh
    #if NRF_SDH_LOG_ENABLED
    #define NRF_LOG_LEVEL NRF_SDH_LOG_LEVEL
    #define NRF_LOG_INFO_COLOR NRF_SDH_INFO_COLOR
    #define NRF_LOG_DEBUG_COLOR NRF_SDH_DEBUG_COLOR
    #else
    #define NRF_LOG_LEVEL 0
    #endif // NRF_SDH_LOG_ENABLED
    #include "nrf_log.h"
    NRF_LOG_MODULE_REGISTER();

    Basically setting NRF_LOG_LEVEL = 0 before calling NRF_LOG_MODULE_REGISTER() will disable logging for the module. 

Children
No Data
Related