Replaced my_logger with env_logger in docs

This commit is contained in:
Ottavio Hartman 2017-05-20 01:15:21 -04:00
parent eb90d0e2ad
commit 5c6ad56dfd

View File

@ -78,13 +78,16 @@
//! ```rust,ignore
//! #[macro_use]
//! extern crate log;
//! extern crate my_logger;
//! extern crate env_logger;
//!
//! fn main() {
//! my_logger::init();
//!
//! env_logger::init().unwrap();
//!
//! // Set the RUST_LOG level prior to running the binary
//! // (see https://doc.rust-lang.org/log/env_logger/index.html)
//! info!("starting up");
//!
//! error!("error: {}", 404);
//!
//! // ...
//! }
//! ```