zephyr::logging

Function set_logger

Source
pub unsafe fn set_logger() -> Result<(), SetLoggerError>
Expand description

Set the log handler to log messages through printk in Zephyr.

ยงSafety

This is unsafe due to racy issues in the log framework on targets that do not support atomic pointers. As long as this is called ever by a single thread, it is safe to use.