logstr

Crates.iologstr
lib.rslogstr
version0.1.7
sourcesrc
created_at2023-06-19 09:38:20.320509
updated_at2024-07-18 01:27:03.226593
descriptionSimple,Log saving
homepage
repositoryhttps://gitee.com/w-8/logstr
max_upload_size
id893970
size7,052
(MDZZDYXCMDZZDYXC)

documentation

README

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
Commit count: 0

cargo fmt