diff --git a/src/plugin/file_split.rs b/src/plugin/file_split.rs index 29ed0b5..dda07be 100644 --- a/src/plugin/file_split.rs +++ b/src/plugin/file_split.rs @@ -158,6 +158,7 @@ impl SplitFile for RawFile { pub enum PackType { ByDate(DateTime), BySize(LogSize), + ByCanPack(Box), } impl CanPack for PackType { @@ -180,6 +181,9 @@ impl CanPack for PackType { None } } + PackType::ByCanPack(c) => { + c.is_pack(_appender, temp_name, temp_size, arg) + } }; } }