pub fn init() -> Result<()>Expand description
Install the oveRTOS console logger as the global log::Log impl.
Call once near the top of ove_main. After this returns, the
log::info!/warn!/error!/etc. family route through
ove_console_write exactly like the legacy custom log macros
(log_inf/log_wrn/log_err) used to before this iteration.
The global max level is set to log::LevelFilter::Info — apps
that want debug/trace output should call
log::set_max_level(log::LevelFilter::Trace) after this.
§Errors
Returns Error::InvalidParam if the global logger has already
been set (the log crate’s set_logger is a one-shot). Repeated
init is a programming error — apps that intentionally re-init
should use try_init and ignore the resulting error.