From 4153db26249cfdd8b4bcec545ccc1a1c1713b79a Mon Sep 17 00:00:00 2001 From: Gambhiro Date: Sun, 14 Aug 2016 14:55:10 +0100 Subject: [PATCH] env_logger --- Cargo.toml | 1 + src/bin/mdbook.rs | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 0af11c45..ac11e144 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,6 +20,7 @@ handlebars = "0.20.0" rustc-serialize = "0.3.18" pulldown-cmark = "0.0.8" log = "0.3" +env_logger = "0.3.4" # Watch feature notify = { version = "2.5.5", optional = true } diff --git a/src/bin/mdbook.rs b/src/bin/mdbook.rs index a77ac680..2d2bb0b0 100644 --- a/src/bin/mdbook.rs +++ b/src/bin/mdbook.rs @@ -2,6 +2,9 @@ extern crate mdbook; #[macro_use] extern crate clap; +#[macro_use] +extern crate log; +extern crate env_logger; // Dependencies for the Watch feature #[cfg(feature = "watch")] @@ -38,6 +41,8 @@ use mdbook::MDBook; const NAME: &'static str = "mdbook"; fn main() { + env_logger::init().unwrap(); + // Create a list of valid arguments and sub-commands let matches = App::new(NAME) .about("Create a book in form of a static website from markdown files")