Skip to content

Commit 4153db2

Browse files
author
Gambhiro
committed
env_logger
1 parent db11ff2 commit 4153db2

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ handlebars = "0.20.0"
2020
rustc-serialize = "0.3.18"
2121
pulldown-cmark = "0.0.8"
2222
log = "0.3"
23+
env_logger = "0.3.4"
2324

2425
# Watch feature
2526
notify = { version = "2.5.5", optional = true }

src/bin/mdbook.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
extern crate mdbook;
33
#[macro_use]
44
extern crate clap;
5+
#[macro_use]
6+
extern crate log;
7+
extern crate env_logger;
58

69
// Dependencies for the Watch feature
710
#[cfg(feature = "watch")]
@@ -38,6 +41,8 @@ use mdbook::MDBook;
3841
const NAME: &'static str = "mdbook";
3942

4043
fn main() {
44+
env_logger::init().unwrap();
45+
4146
// Create a list of valid arguments and sub-commands
4247
let matches = App::new(NAME)
4348
.about("Create a book in form of a static website from markdown files")

0 commit comments

Comments
 (0)