Crates.io | logstr |
lib.rs | logstr |
version | 0.1.7 |
source | src |
created_at | 2023-06-19 09:38:20.320509 |
updated_at | 2024-07-18 01:27:03.226593 |
description | Simple,Log saving |
homepage | |
repository | https://gitee.com/w-8/logstr |
max_upload_size | |
id | 893970 |
size | 7,052 |
#[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