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?
Can you run menuconfig to see if options are set to expected level?
What does it mean 'no luck'? Logs are not getting printed? Do you see any logs? Is your application using shell or raw uart as the output?
Can you run menuconfig to see if options are set to expected level?
What does it mean 'no luck'? Logs are not getting printed? Do you see any logs? Is your application using shell or raw uart as the output?
ov, sorry, sure: I see just plain Printk's, no logs.
like, this is visible:
printk("at cmd: %s\n", cmd);
and this not:
LOG_DBG("send: %s", cmd);
Krzysztof, could you please advise where to find: menuconfig ? :-|
You need to type:
ninja menuconfig in a folder where you were compiling your application.
Btw. Did you re-generated (with cmake) project after updating prj.conf?
I'm using Segger SES, let me try on command line...
Thank you!
Hi,
I did not use SES for Zephyr development yet. I have always generated everything with a command line.