[−][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() .default_level(log::LevelFilter::Trace) .format(|record| { format!( "[{}] {} # {}: {}", record.target(), chrono::Local::now() .format("%H:%M:%S"), record.level(), record.args() ) }) .ready() .unwrap(); trace!("hello, world!"); debug!("hello, world!"); info!("hello, world!"); warn!("hello, world!"); error!("hello, world!"); }
Structs
Logger |