From 1b7cd1e2bf671610af63ebe3e82e53d07291a084 Mon Sep 17 00:00:00 2001 From: bohan Date: Fri, 10 Mar 2023 11:47:27 +0800 Subject: [PATCH] tracing log along diff crates --- src/tracing.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tracing.md b/src/tracing.md index 0bba73f7..44762477 100644 --- a/src/tracing.md +++ b/src/tracing.md @@ -144,6 +144,10 @@ $ RUSTC_LOG=debug rustc +stage1 my-file.rs 2>all-log # compilers. $ 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 # or any rustc library it calls. $ RUSTDOC_LOG=info rustdoc +stage1 my-file.rs