tracing log along diff crates

This commit is contained in:
bohan 2023-03-10 11:47:27 +08:00 committed by Tshepang Mbambo
parent 88a1bdd470
commit 1b7cd1e2bf
1 changed files with 4 additions and 0 deletions

View File

@ -144,6 +144,10 @@ $ RUSTC_LOG=debug rustc +stage1 my-file.rs 2>all-log
# compilers. # compilers.
$ RUSTC_LOG=rustc_codegen_ssa=info rustc +stage1 my-file.rs $ RUSTC_LOG=rustc_codegen_ssa=info rustc +stage1 my-file.rs
# This will show the all tracing calls under `rustc_codegen_ssa` and
# `rustc_resolve`.
$ RUSTC_LOG=rustc_codegen_ssa,rustc_resolve rustc +stage1 my-file.rs
# This will show the output of all `info!` calls made by rustdoc # This will show the output of all `info!` calls made by rustdoc
# or any rustc library it calls. # or any rustc library it calls.
$ RUSTDOC_LOG=info rustdoc +stage1 my-file.rs $ RUSTDOC_LOG=info rustdoc +stage1 my-file.rs