# logstr ~~~rust #[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 ~~~