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.
This commit is contained in:
Olivier FAURE 2020-11-11 12:31:58 +00:00 committed by Joshua Nelson
parent 0a1da4f8a4
commit c15e119fd5
1 changed files with 6 additions and 2 deletions

View File

@ -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