init_logger in rustc_driver - Rust (original) (raw)
Function init_logger
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.