mlog

Crates.iomlog
lib.rsmlog
version0.3.1
sourcesrc
created_at2019-01-12 12:12:31.738893
updated_at2019-04-04 14:32:25.903159
descriptionA logging implementation in Rust.
homepage
repositoryhttps://github.com/epsimatt/mlog
max_upload_size
id108147
size43,152
epsimatt (epsimatt)

documentation

README

license crates.io docs

mlog

A logging implementation in 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!");
}
Commit count: 0

cargo fmt