Skip to content

Commit

Permalink
add support zip_compress
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxiujia committed Nov 5, 2020
1 parent 8418fef commit c77d502
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/fast_log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ pub fn init_log(log_file_path: &str, channel_cup: usize, level: log::Level, mut
/// initializes the log file path
/// log_dir_path: example-> "log/"
/// channel_cup: example -> 1000
/// log_cup: splite if cup full
/// zip_compress: zip compress log file
/// filter: log filter
pub fn init_split_log(log_dir_path: &str, channel_cup: usize, log_cup: u64, zip_compress: bool, level: log::Level, mut filter: Option<Box<dyn Filter>>, debug_mode: bool) -> Result<(), Box<dyn std::error::Error + Send>> {
let mut appenders: Vec<Box<dyn LogAppender>> = vec![
Box::new(FileSplitAppender::new(log_dir_path, log_cup, zip_compress))
Expand Down

0 comments on commit c77d502

Please sign in to comment.