I want to enable the Logger Module to have the high default severity of Error and then be able to enable lower level severities on an individual module for debugging. Is this possible with the current API?
I want to enable the Logger Module to have the high default severity of Error and then be able to enable lower level severities on an individual module for debugging. Is this possible with the current API?
Hi Darren
No, this is not possible without changing the logger API.
If you take a look at the implementation in nrf_log_internal.h you can see that the log messages will only be included if both the default log level and the module specific log level is lower or equal to that of the current message.
Best regards
Torbjørn
Hi Darren
No, this is not possible without changing the logger API.
If you take a look at the implementation in nrf_log_internal.h you can see that the log messages will only be included if both the default log level and the module specific log level is lower or equal to that of the current message.
Best regards
Torbjørn
Torbjon,
Can you comment on why that choice was made it seems to me this makes the logger module less useful? Would Nordic consider changing the API to include the operation I have outlined above?
Thanks, Darren
Hi Darren
I will check with the guy that wrote the library. He has been unavailable all day, but as soon as I get in touch with him I will get back to you ;)