Skip to content

Commit

Permalink
add HowPack
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxiujia committed Jul 27, 2024
1 parent 265d239 commit dd630ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/split_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ mod test {
use fast_log::appender::{Command, FastLogRecord, LogAppender};
use fast_log::consts::LogSize;
use fast_log::plugin::file_name::FileName;
use fast_log::plugin::file_split::{FileSplitAppender, PackType, Keep, RawFile, RollingType};
use fast_log::plugin::file_split::{FileSplitAppender, PackType, Keep, RawFile, RollingType, HowPack};
use fast_log::plugin::packer::LogPacker;
use fastdate::DateTime;
use log::Level;
Expand All @@ -16,7 +16,7 @@ mod test {
let _ = remove_dir_all("target/test/");
let mut appender = FileSplitAppender::new::<RawFile>(
"target/test/",
Box::new(PackType::BySize(LogSize::MB(1))),
Box::new(HowPack::new(PackType::BySize(LogSize::MB(1)))),
Box::new(RollingType::All),
Box::new(LogPacker {}),
)
Expand Down

0 comments on commit dd630ef

Please sign in to comment.