Hello, I am practising and studying the beacon example on nrf52840. While reading the main code, I try to delete the log_init part, however the kit doesn't advertise. I am not clear why we should have the log_init in the main code? Thank you!
Hello, I am practising and studying the beacon example on nrf52840. While reading the main code, I try to delete the log_init part, however the kit doesn't advertise. I am not clear why we should have the log_init in the main code? Thank you!
Hi,
log_init()
function initilize the NRF_LOG library. If you want to do logging from your application to UART/RTT/other backend, this library helps you add this in a simple way.
If you do not need logging, you can remove the calls to NRF_LOG_* or disable logging in sdk_config.h:
#define NRF_LOG_ENABLED 0
Best regards,
Jørgen
Hi,
log_init()
function initilize the NRF_LOG library. If you want to do logging from your application to UART/RTT/other backend, this library helps you add this in a simple way.
If you do not need logging, you can remove the calls to NRF_LOG_* or disable logging in sdk_config.h:
#define NRF_LOG_ENABLED 0
Best regards,
Jørgen