Function fast_log::fast_log::init_split_log [−][src]
pub fn init_split_log(
log_dir_path: &str,
channel_log_cup: usize,
max_temp_size: LogSize,
rolling_type: RollingType,
level: Level,
filter: Option<Box<dyn Filter>>,
packer: Box<dyn Packer>,
allow_console_log: bool
) -> Result<FastLogWaitGroup, LogError>
Expand description
initializes the log file path log_dir_path: example-> “log/” channel_log_cup: example -> 1000 max_temp_size: do zip if temp log full allow_zip_compress: zip compress log file filter: log filter packer: you can use ZipPacker or LZ4Packer or custom your Packer