Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
5f502f0
document logging envvars in devguide
jdonszelmann Feb 24, 2026
5d84282
Rollup merge of #152176 - JamieCunliffe:neon-str-contains, r=Mark-Sim…
JonathanBrouwer Feb 24, 2026
891d21e
Rollup merge of #152657 - joboet:move_pal_exit, r=jhpratt
JonathanBrouwer Feb 24, 2026
6cfb6d7
Rollup merge of #152845 - jieyouxu:split-tidy-from-pr-test-jobs, r=ma…
JonathanBrouwer Feb 24, 2026
94c82de
Rollup merge of #152897 - jdonszelmann:logging, r=jieyouxu
JonathanBrouwer Feb 24, 2026
b9dbcf3
Rollup merge of #153009 - nnethercote:rm-define_feedable, r=oli-obk
JonathanBrouwer Feb 24, 2026
43dbf6b
Rollup merge of #151558 - mejrs:port_on_unimplemented, r=jdonszelmann…
JonathanBrouwer Feb 24, 2026
a9e876c
Rollup merge of #152492 - biscuitrescue:fix-array-valtree-wf, r=BoxyUwU
JonathanBrouwer Feb 24, 2026
efef9bb
Rollup merge of #152888 - ValorZard:async-drop-fix, r=oli-obk
JonathanBrouwer Feb 24, 2026
841c556
Rollup merge of #152988 - JonathanBrouwer:register-tool, r=jdonszelmann
JonathanBrouwer Feb 24, 2026
e744bc4
Rollup merge of #153018 - WaffleLapkin:must_use_improvements, r=jdons…
JonathanBrouwer Feb 24, 2026
bd6ea14
Rollup merge of #153023 - rustbot:docs-update, r=ehuss
JonathanBrouwer Feb 24, 2026
36d19c8
Rollup merge of #153033 - Zalathar:ensure, r=nnethercote
JonathanBrouwer Feb 24, 2026
37c69a2
Rollup merge of #153043 - RalfJung:c-flag-missing, r=lqd
JonathanBrouwer Feb 24, 2026
6e7c3bc
Rollup merge of #153045 - tshepang:rdg-sync, r=tshepang
JonathanBrouwer Feb 24, 2026
0e8a714
Auto merge of #153047 - JonathanBrouwer:rollup-l4iF4ru, r=JonathanBro…
bors Feb 24, 2026
331fdd6
Auto merge of #152862 - flip1995:clippy-subtree-update, r=samueltardieu
bors Feb 25, 2026
eb94a43
Auto merge of #151247 - chenyukang:yukang-fix-const-recover-151149, r…
bors Feb 27, 2026
40d4d4a
Auto merge of #152702 - oli-obk:nonnulltransmute, r=scottmcm
bors Feb 27, 2026
5dff409
Auto merge of #152838 - Kobzol:cargo-miri-cargo-in-tree-, r=jieyouxu
bors Feb 28, 2026
1d2125d
Auto merge of #152948 - GrigorenkoPV:sym-ascii, r=JonathanBrouwer
bors Feb 28, 2026
d68889e
Auto merge of #153050 - JayanAXHF:refactor/change-is-type-const, r=Bo…
bors Feb 28, 2026
bc9d559
Auto merge of #152864 - TKanX:bugfix/123183-array-cast-abi-noundef, r…
bors Mar 1, 2026
df1b75e
Prepare for merging from rust-lang/rust
invalid-email-address Mar 2, 2026
432b6df
Merge ref 'e7d90c695a39' from rust-lang/rust
invalid-email-address Mar 2, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rust-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c78a29473a68f07012904af11c92ecffa68fcc75
e7d90c695a39426baf5ae705de2f9570a72229de
19 changes: 19 additions & 0 deletions src/tracing.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,25 @@ To see the logs, you need to set the `RUSTC_LOG` environment variable to your lo
The full syntax of the log filters can be found in the [rustdoc
of `tracing-subscriber`](https://docs.rs/tracing-subscriber/0.2.24/tracing_subscriber/filter/struct.EnvFilter.html#directives).

## Environment variables

This is an overview of the environment variables rustc accepts to customize
its tracing output. The definition of these can mostly be found in `compiler/rustc_log/src/lib.rs`.

| Name | Usage |
| ------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| `RUSTC_LOG` | Tracing filters (see the rest of this page) |
| `RUSTC_LOG_COLOR` | `always`, `never` or `auto`. |
| `RUSTC_LOG_ENTRY_EXIT` | if set and not '0', log span entry/exit. |
| `RUSTC_LOG_THREAD_IDS` | if set and equal to '1', also log thread ids. |
| `RUSTC_LOG_BACKTRACE` | Capture and print a backtrace if a trace is emitted with a target that matches the provided string value. |
| `RUSTC_LOG_LINES` | If `1`, indents log lines based on depth. |
| `RUSTC_LOG_FORMAT_JSON` | If `1`, outputs logs as JSON. The exact parameters can be found in `rustc_log/src/lib.rs` but the format is *UNSTABLE*. |
| `RUSTC_LOG_OUTPUT_TARGET` | If provided, logs go to the provided file name instead of stderr. |




## Function level filters

Lots of functions in rustc are annotated with
Expand Down
Loading