File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1414//!
1515//! ```
1616//! fn main() {
17- //! rustc_log::init_rustc_env_logger( ).unwrap();
17+ //! rustc_log::init_env_logger("LOG" ).unwrap();
1818//!
1919//! let edition = rustc_span::edition::Edition::Edition2021;
2020//! rustc_span::create_session_globals_then(edition, || {
2323//! }
2424//! ```
2525//!
26- //! Now `RUSTC_LOG =debug cargo run` will run your minimal main.rs and show
26+ //! Now `LOG =debug cargo run` will run your minimal main.rs and show
2727//! rustc's debug logging. In a workflow like this, one might also add
28- //! `std::env::set_var("RUSTC_LOG ", "debug")` to the top of main so that `cargo
28+ //! `std::env::set_var("LOG ", "debug")` to the top of main so that `cargo
2929//! run` by itself is sufficient to get logs.
3030//!
3131//! The reason rustc_log is a tiny separate crate, as opposed to exposing the
You can’t perform that action at this time.
0 commit comments