[−][src]Crate mlog
A logging implementation in Rust.
Example
#[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!"); }
Structs
Logger |
Enums
Output | The stream that log messages will be sent to. |