nRF Connect SDK v2.0.0VS Code 1.70.2nRF9160 development kit
To view all possible log messages the fololwing logging configuration is set up in prj.conf:
nRF Connect SDK v2.0.0VS Code 1.70.2nRF9160 development kit
To view all possible log messages the fololwing logging configuration is set up in prj.conf:
Hi nRF5xFanBoy,
Thanks for your thought.
With CONFIG_LOG_OVERRIDE_LEVEL=3 the LOG_DBG statements in my application are shown correct, so I assume that when set to 4 these statements are still OK. Could it be possible that a LOG_DBG statement in other (nRF connect) sources is incorrect? How can I verify this?
Hi Elbert,
This is correct if the log level is at runtime.
But the zephyr logging is handled at compile time. This inactive parts are not in the runtime code.
So is level3 is active , the logging debug (=level4) do not show.
Best regards,
nRF5xFanBoy
Does the mean that it is not possible to use CONFIG_LOG_OVERRIDE_LEVEL=4?
Does the mean that it is not possible to use CONFIG_LOG_OVERRIDE_LEVEL=4?
Hi Elbert,
I try to clarify.
When you use log debug statements in the code and compile with CONFIG_LOG_OVERRIDE_LEVEL = 4 the log debug statements are performed.
When you compile with CONFIG_LOG_OVERRIDE_LEVEL = 3 the log debug statements are not performed because they are removed from code during compilation.
LOG_OVERRIDE_LEVEL — Zephyr Project Documentation
Hope it helps,
best regards,
nRF5xFanBoy