beautylog/examples/example.rs

15 lines
260 B
Rust

#[macro_use]
extern crate log;
fn main() {
beautylog::init(log::LevelFilter::Trace).ok();
info!("some information");
warn!("something went wrong");
debug!("some debug info");
trace!("yo");
error!("something went horribly wrong");
}