Skip to main content

init_log_bridge

Function init_log_bridge 

Source
pub fn init_log_bridge(level_override: Option<LevelFilter>)
Expand description

Initialize the log crate bridge. Call this once from main() instead of env_logger::init(). Routes all log::info!() etc. calls to the par-term debug log file. When RUST_LOG is set, also mirrors to stderr for terminal debugging.

level_override allows CLI or config to set the level. If None, uses RUST_LOG env var (or defaults to Info).