init_logger in rustc_driver - Rust (original) (raw)

rustc_driver

Function init_logger

Source

pub fn init_logger(early_dcx: &EarlyDiagCtxt, cfg: LoggerConfig)

Expand description

This allows tools to enable rust logging without having to magically match rustc’s tracing crate version. In contrast to init_rustc_env_logger it allows you to choose the logger config directly rather than having to set an environment variable.