7 releases

0.1.7 Jul 18, 2024
0.1.6 Jan 3, 2024
0.1.3 Aug 28, 2023
0.1.1 Jun 27, 2023

#582 in Debugging

MIT/Apache

5KB
83 lines

logstr

#[macro_use] extern crate logstr;
let file = std::fs::File::create(format!("{}.txt",logstr::nowtime())).unwrap();
logstr::init(Some(file),true);
info!("233");
error!("233");
warn!("233");
debug!("233");
trace!("2333");
[-I-] [240103 13:58:47] 233
[-E-] [240103 13:58:47] 233
[-W-] [240103 13:58:47] 233
[-D-] [240103 13:58:47] 233
[-T-] [240103 13:58:47] 2333

Dependencies

~1.5MB
~19K SLoC