Skip to content

Commit

Permalink
Use eddyb's suggestion from rust-lang#11 about logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-i-m committed Mar 23, 2019
1 parent 9df878f commit 9b06a12
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/compiler-debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,10 @@ your log filter, e.g. to get the logs for a specific module, you can run the
compiler as `RUST_LOG=module::path rustc my-file.rs`. All `debug!` output will
then appear in standard error.
Note that unless you use a very strict filter, the logger will emit a *lot*
of output - so it's typically a good idea to pipe standard error to a file
and look at the log output with a text editor.
**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
look at the log output with a text editor. You should also .
So to put it together.
Expand Down

0 comments on commit 9b06a12

Please sign in to comment.