@@ -744,16 +744,16 @@ log(warn, "hi");
744
744
log(error, (1, [2.5, -1.8]));
745
745
~~~~
746
746
747
- The first argument is the log level (levels ` info ` , ` warn ` , and
748
- ` error ` are predefined), and the second is the value to log. By
747
+ The first argument is the log level (levels ` debug ` , ` info ` , ` warn ` ,
748
+ and ` error ` are predefined), and the second is the value to log. By
749
749
default, you * will not* see the output of that first log statement,
750
750
which has ` warn ` level. The environment variable ` RUST_LOG ` controls
751
751
which log level is used. It can contain a comma-separated list of
752
752
paths for modules that should be logged. For example, running ` rustc `
753
753
with ` RUST_LOG=rustc::front::attr ` will turn on logging in its
754
754
attribute parser. If you compile a program named ` foo.rs ` , its
755
755
top-level module will be called ` foo ` , and you can set ` RUST_LOG ` to
756
- ` foo ` to enable ` warn ` and ` info ` logging for the module.
756
+ ` foo ` to enable ` warn ` , ` info ` and ` debug ` logging for the module.
757
757
758
758
Turned-off ` log ` statements impose minimal overhead on the code that
759
759
contains them, so except in code that needs to be really, really fast,
0 commit comments