Enable and Disable different log level from zephyr CLI using Zephyr Logging API

Hi,
Is it possible to enable and Different log level from Zephyr cli using Zephyr Logging API?

i am using 

LOG_MODULE_REGISTER(AWS, 3);

I want to change or register new level using CLI.

Thanks
Parents
  • Hi Waqar, so you were able to achieve this?

    Thanks for letting me know, I was certain that this wasn't going to be possible. The LOG statements in Zephyr are preprocessor macros, and reducing the log level for a module will normally ensure that the lower priority log statement don't get compiled into the image at all, so I didn't see how they could be reenabled through the Zephyr shell.

    Thanks for sharing!

    Best regards,

    Raoul Pathak

Reply
  • Hi Waqar, so you were able to achieve this?

    Thanks for letting me know, I was certain that this wasn't going to be possible. The LOG statements in Zephyr are preprocessor macros, and reducing the log level for a module will normally ensure that the lower priority log statement don't get compiled into the image at all, so I didn't see how they could be reenabled through the Zephyr shell.

    Thanks for sharing!

    Best regards,

    Raoul Pathak

Children
Related