trying to set the LOG_LEVEL in the prj.conf, building, cleaning,rebuilding... takes no effect.
what am I missing?
trying to set the LOG_LEVEL in the prj.conf, building, cleaning,rebuilding... takes no effect.
what am I missing?
Hi,
what are you trying to enable? Enabling logs in a module or change logger configuration?
You need to use CONFIG_....=y to set kconfig option. For enabling certain log level in a module usually you need to set something like:
CONFIG_<MODULE>_LOG_LEVEL_DBG=y
Thanks!
I have set:
CONFIG_LOG=y
CONFIG_SERIAL=y
CONFIG_STDOUT_CONSOLE=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_LTE_LINK_CONTROL_LOG_LEVEL=4
CONFIG_NET_CONFIG_LOG_LEVEL=4
CONFIG_NET_APP_LOG_LEVEL=4
CONFIG_NET_SOCKETS_LOG_LEVEL=4
CONFIG_NET_MGMT_EVENT_LOG_LEVEL=4
CONFIG_MQTT_SOCKET_LOG_LEVEL=4
but no luck... :((( somehow, I feel to miss a step...
instead of
CONFIG_LTE_LINK_CONTROL_LOG_LEVEL=4
you need to do:
CONFIG_LTE_LINK_CONTROL_LOG_LEVEL_DBG=y
I know it may be a bit confusing but it's forced by the way logging options are done in kconfig (choice list rather than value provided by the user, see https://github.com/NordicPlayground/fw-nrfconnect-zephyr/blob/master/subsys/logging/Kconfig.template.log_config).
Great, let me try, thank you!
no luck :( for now. do I need to do any special tricks?