Module logger

Source
Expand description

Logger injection.

OSTD allows its client to inject a custom implementation of logger. If no such logger is injected, then OSTD falls back to a built-in logger that simply dumps all log records with crate::console::early_print.

OSTD’s logger facility relies on the log crate. Both an OSTD client and OSTD itself use the macros from the log crate such as error, info, and debug to emit log records. The injected logger is required to implement the log::Log trait.

Functions§

inject_logger
Injects a logger.