Skip to content

v1.3.13

Compare
Choose a tag to compare
@zhuxiujia zhuxiujia released this 16 Dec 15:14
· 579 commits to master since this release

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()])),
    );