pub fn inject_logger(new_logger: &'static dyn Log)
Expand description
Injects a logger.
This method can be called at most once; calling it more than once has no effect.
ยงRequirements
As the logger may be invoked in stringent situations, such as an interrupt handler, an out-of-memory handler, or a panic handler, a logger should be implemented to be short (simple and non-sleeping) and heapless (not trigger heap allocations). Failing to do so may cause the kernel to panic or deadlock.