Function rustc_driver::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 values directly rather than having to set an environment variable.