Releases: rbatis/fast_log
Releases · rbatis/fast_log
v1.3.19
v1.3.18
v1.3.17
v1.3.16
v1.3.15
v1.3.14
v1.3.13
v1.3.13
- fix some bugs
- support split file for file size.
//自定义日志追加器
let mut appenders: Vec<Box<dyn LogAppender>> = vec![
Box::new(FileSplitAppender::new("target/logs/", LogSize::MB(10), true))
];
if CONFIG.debug {
appenders.push(Box::new(ConsoleAppender {}));
}
//自定义日志过滤
fast_log::init_custom_log(appenders,
1000,
log::Level::Info,
Box::new(ModuleFilter::new_exclude(vec!["sqlx".to_string()])),
);