Skip to content

Commit a5dcbc6

Browse files
tbu-alexcrichton
authored andcommitted
Remove RUST_LOG="::help" from the docs
This feature is no longer present in the current version, it was removed along with the crate map.
1 parent 6fcf43e commit a5dcbc6

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

src/doc/complement-lang-faq.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,14 @@ export RUST_LOG=hello
141141
./hello
142142
```
143143

144-
**Long answer** RUST_LOG takes a 'logging spec' that consists of a comma-separated list of paths, where a path consists of the crate name and sequence of module names, each separated by double-colons. For standalone .rs files the crate is implicitly named after the source file, so in the above example we were setting RUST_LOG to the name of the hello crate. Multiple paths can be combined to control the exact logging you want to see. For example, when debugging linking in the compiler you might set `RUST_LOG=rustc::metadata::creader,rustc::util::filesearch,rustc::back::rpath`
145-
146-
If you aren't sure which paths you need, try setting RUST_LOG to `::help` and running your program. This will print a list of paths available for logging. For a full description see [the language reference][1].
144+
**Long answer** RUST_LOG takes a 'logging spec' that consists of a
145+
comma-separated list of paths, where a path consists of the crate name and
146+
sequence of module names, each separated by double-colons. For standalone .rs
147+
files the crate is implicitly named after the source file, so in the above
148+
example we were setting RUST_LOG to the name of the hello crate. Multiple paths
149+
can be combined to control the exact logging you want to see. For example, when
150+
debugging linking in the compiler you might set
151+
`RUST_LOG=rustc::metadata::creader,rustc::util::filesearch,rustc::back::rpath`
152+
For a full description see [the language reference][1].
147153

148154
[1]:http://doc.rust-lang.org/doc/master/rust.html#logging-system

src/doc/rust.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4056,10 +4056,6 @@ crate name the crate is given a default name that matches the source file,
40564056
with the extension removed. In that case, to turn on logging for a program
40574057
compiled from, e.g. `helloworld.rs`, `RUST_LOG` should be set to `helloworld`.
40584058

4059-
As a convenience, the logging spec can also be set to a special pseudo-crate,
4060-
`::help`. In this case, when the application starts, the runtime will
4061-
simply output a list of loaded modules containing log expressions, then exit.
4062-
40634059
#### Logging Expressions
40644060

40654061
Rust provides several macros to log information. Here's a simple Rust program

0 commit comments

Comments
 (0)