diff --git a/src/plugin/file_split.rs b/src/plugin/file_split.rs index 57e5007..1072b04 100644 --- a/src/plugin/file_split.rs +++ b/src/plugin/file_split.rs @@ -39,6 +39,8 @@ impl Packer for Box { /// is can do pack? pub trait CanRollingPack: Send { + /// is it can do rolling? just return Some(log_file_name).notice the log_file_name must have prefix of temp_name. + /// if you return None, it's not do rolling now. fn can(&mut self, appender: &dyn Packer, temp_name: &str, temp_size: usize, arg: &FastLogRecord) -> Option; }