pub trait Trigger: Debug + Send + Sync + 'static {
// Required methods
fn trigger(&self, file: &LogFile<'_>) -> Result<bool>;
fn is_pre_process(&self) -> bool;
}
Expand description
A trait which identifies if the active log file should be rolled over.
Required Methods§
sourcefn trigger(&self, file: &LogFile<'_>) -> Result<bool>
fn trigger(&self, file: &LogFile<'_>) -> Result<bool>
Determines if the active log file should be rolled over.
sourcefn is_pre_process(&self) -> bool
fn is_pre_process(&self) -> bool
Sets the is_pre_process flag for log files.
Defaults to true for time triggers and false for size triggers