We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db11ff2 commit 4153db2Copy full SHA for 4153db2
Cargo.toml
@@ -20,6 +20,7 @@ handlebars = "0.20.0"
20
rustc-serialize = "0.3.18"
21
pulldown-cmark = "0.0.8"
22
log = "0.3"
23
+env_logger = "0.3.4"
24
25
# Watch feature
26
notify = { version = "2.5.5", optional = true }
src/bin/mdbook.rs
@@ -2,6 +2,9 @@
2
extern crate mdbook;
3
#[macro_use]
4
extern crate clap;
5
+#[macro_use]
6
+extern crate log;
7
+extern crate env_logger;
8
9
// Dependencies for the Watch feature
10
#[cfg(feature = "watch")]
@@ -38,6 +41,8 @@ use mdbook::MDBook;
38
41
const NAME: &'static str = "mdbook";
39
42
40
43
fn main() {
44
+ env_logger::init().unwrap();
45
+
46
// Create a list of valid arguments and sub-commands
47
let matches = App::new(NAME)
48
.about("Create a book in form of a static website from markdown files")
0 commit comments