env_logger

This commit is contained in:
Gambhiro 2016-08-14 14:55:10 +01:00
parent db11ff27f4
commit 4153db2624
2 changed files with 6 additions and 0 deletions

View file

@ -20,6 +20,7 @@ handlebars = "0.20.0"
rustc-serialize = "0.3.18" rustc-serialize = "0.3.18"
pulldown-cmark = "0.0.8" pulldown-cmark = "0.0.8"
log = "0.3" log = "0.3"
env_logger = "0.3.4"
# Watch feature # Watch feature
notify = { version = "2.5.5", optional = true } notify = { version = "2.5.5", optional = true }

View file

@ -2,6 +2,9 @@
extern crate mdbook; extern crate mdbook;
#[macro_use] #[macro_use]
extern crate clap; extern crate clap;
#[macro_use]
extern crate log;
extern crate env_logger;
// Dependencies for the Watch feature // Dependencies for the Watch feature
#[cfg(feature = "watch")] #[cfg(feature = "watch")]
@ -38,6 +41,8 @@ use mdbook::MDBook;
const NAME: &'static str = "mdbook"; const NAME: &'static str = "mdbook";
fn main() { fn main() {
env_logger::init().unwrap();
// Create a list of valid arguments and sub-commands // Create a list of valid arguments and sub-commands
let matches = App::new(NAME) let matches = App::new(NAME)
.about("Create a book in form of a static website from markdown files") .about("Create a book in form of a static website from markdown files")