Closed erlingrj closed 2 weeks ago
@LasseRosenow is there a nice riot-os logging module the only thing I found is: https://doc.riot-os.org/core_2lib_2include_2log_8h.html
I am looking at this currently :)
@LasseRosenow is there a nice riot-os logging module the only thing I found is: https://doc.riot-os.org/core_2lib_2include_2log_8h.html
From my knowledge in RIOT it is common to just use printf and then hide Debug prints behind the DEBUG define, which can be overwritten on a per-file basis.
This logging system that you are referencing there is the better alternative to that in my view, but usage of it is somewhat "random".
A first iteration of flexible logging system is now in main
It is overdue to implement a logging system. I want it to be simple but flexible. I want
LOG_REGISTER_MODULE("scheduler")
LOG_LEVEL("scheduler", LOG_INFO)
LOG_ERR("scheduler", "Tried to schedule event into the past %ld", event_time);
Zephyr has a particularly nice logging system and I want our logging to match nicely to that: https://docs.zephyrproject.org/latest/services/logging/index.html
For other targets we can chose to either: