@@ -744,16 +744,16 @@ log(warn, "hi");
744744log(error, (1, [2.5, -1.8]));
745745~~~~
746746
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
749749default, you * will not* see the output of that first log statement,
750750which has ` warn ` level. The environment variable ` RUST_LOG ` controls
751751which log level is used. It can contain a comma-separated list of
752752paths for modules that should be logged. For example, running ` rustc `
753753with ` RUST_LOG=rustc::front::attr ` will turn on logging in its
754754attribute parser. If you compile a program named ` foo.rs ` , its
755755top-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.
757757
758758Turned-off ` log ` statements impose minimal overhead on the code that
759759contains them, so except in code that needs to be really, really fast,
0 commit comments