We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a3e25b3 + ce88416 commit f7af715Copy full SHA for f7af715
src/lib.rs
@@ -70,6 +70,19 @@
70
//! INFO: 2017-11-09T02:12:24Z: main: the answer was: 12
71
//! ```
72
//!
73
+//! If the binary name contains hyphens, you will need to replace
74
+//! them with underscores:
75
+//!
76
+//! ```{.bash}
77
+//! $ RUST_LOG=my_app ./my-app
78
+//! DEBUG: 2017-11-09T02:12:24Z: my_app: this is a debug message
79
+//! ERROR: 2017-11-09T02:12:24Z: my_app: this is printed by default
80
+//! INFO: 2017-11-09T02:12:24Z: my_app: the answer was: 12
81
+//! ```
82
83
+//! This is because Rust modules and crates cannot contain hyphens
84
+//! in their name, although `cargo` continues to accept them.
85
86
//! See the documentation for the [`log` crate][log-crate-url] for more
87
//! information about its API.
88
0 commit comments