[![license](https://img.shields.io/crates/l/mlog.svg)](https://github.com/epsimatt/mlog/blob/master/LICENSE) [![crates.io](https://img.shields.io/crates/v/mlog.svg)](https://crates.io/crates/mlog) [![docs](https://img.shields.io/badge/docs-latest-green.svg)](https://docs.rs/mlog/0.2.1/mlog/) # mlog A logging implementation in Rust. ```rust #[macro_use] extern crate log; extern crate chrono; extern crate mlog; use mlog::Logger; fn main() { Logger::new() .for_module("mlog_example::*", log::LevelFilter::Off) .format(|record| { format!( "[{}] {}: {}", chrono::Local::now() .format("%H:%M:%S"), record.level(), record.args() ) }) .set_default_level(log::LevelFilter::Info) .ready() .unwrap(); info!("hello, world!"); } ```