Skip to main content

init_host_logging

Function init_host_logging 

Source
pub fn init_host_logging(max: LevelFilter) -> Result<(), SetLoggerError>
Expand description

Call once from a simulator’s or test’s main before the supervisor starts; records emitted earlier are dropped by the log facade. Errors if a logger is already installed — including a second call — in which case the existing logger and level are left untouched.