I setup the nrfx logging per the sample and it works within my main.c but when I get a log warning from nrfx_timer.c I do not get an output. Is the logging configurable across files?
I setup the nrfx logging per the sample and it works within my main.c but when I get a log warning from nrfx_timer.c I do not get an output. Is the logging configurable across files?
Hi,
Yes, the logging is configurable across files. However, each logging system contains rules about where and how to enable it. In order to see warnings from nrfx_timer.c, ensure that nRFX_LOG_* macros are globally mapped to your logger and the logger itself is enabled and contains log level including WARNING. All files including nrfx_timer.c must see this mapping. If not, the logs won't print. So,
1) nrfx has its own log macros and drivers such as nrfx_timer.c call NRFX_LOG_WARNING, NRFX_LOG_INFO which must be implemented by your project.
2) NRFX_LOG_* must be connected to your logger once for the whole project.
3) Ensure that the backend logger is enabled and at the right level.
4) NRFX_LOG_* should be mapped correctly and must be visible to that file.
Best Regards,
Samruddhi