pub fn wrap_logger(inner: Box<dyn Log>) -> Box<dyn Log>Expand description
Wrap the app’s own log::Log so every record is captured and still
printed by it. For env_logger-style setups:
ⓘ
let inner = env_logger::Builder::from_default_env().build();
let max = inner.filter();
log::set_boxed_logger(victauri_plugin::wrap_logger(Box::new(inner))).ok();
log::set_max_level(max);In release builds (or with VICTAURI_DISABLE) the inner logger is returned
unchanged.