diff options
| author | Olivier FAURE <CouteauBleu@gmail.com> | 2020-11-11 12:31:58 +0000 |
|---|---|---|
| committer | Joshua Nelson <joshua@yottadb.com> | 2020-11-11 10:39:15 -0500 |
| commit | a179f33191bd91c323dc9f3ed97c75e54fe2e0fc (patch) | |
| tree | 2290e26435563bfe9c6c7649a2522753aea7ba95 /src/doc/rustc-dev-guide | |
| parent | ad2ef2af6b3b712f0317bd6ef318768095107625 (diff) | |
| download | rust-a179f33191bd91c323dc9f3ed97c75e54fe2e0fc.tar.gz rust-a179f33191bd91c323dc9f3ed97c75e54fe2e0fc.zip | |
Update link in compiler-debugging.md
Link didn't point to latest version of `env_logger` crate. Add an explanation to disambiguate the RUSTC_LOG syntax.
Diffstat (limited to 'src/doc/rustc-dev-guide')
| -rw-r--r-- | src/doc/rustc-dev-guide/src/compiler-debugging.md | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/doc/rustc-dev-guide/src/compiler-debugging.md b/src/doc/rustc-dev-guide/src/compiler-debugging.md index e4b04aa9692..914aee1bc9b 100644 --- a/src/doc/rustc-dev-guide/src/compiler-debugging.md +++ b/src/doc/rustc-dev-guide/src/compiler-debugging.md @@ -149,10 +149,10 @@ $ # Cool, now I have a backtrace for the error These crates are used in compiler for logging: * [log] -* [env-logger]: check the link to see the full `RUSTC_LOG` syntax +* [env-logger] [log]: https://docs.rs/log/0.4.6/log/index.html -[env-logger]: https://docs.rs/env_logger/0.4.3/env_logger/ +[env-logger]: https://docs.rs/env_logger/0.8.1/env_logger/ The compiler has a lot of `debug!` calls, which print out logging information at many points. These are very useful to at least narrow down the location of @@ -166,6 +166,10 @@ then appear in standard error. If you are developing rustdoc, use `RUSTDOC_LOG` instead. +See the [env-logger] doc for more info on the full syntax. (Note: unlike the +compiler, the env-logger crate and its examples use the `RUST_LOG` env +variable.) + **Note that unless you use a very strict filter, the logger will emit a lot of output, so use the most specific module(s) you can (comma-separated if multiple)**. It's typically a good idea to pipe standard error to a file and |
