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§

source

fn trigger(&self, file: &LogFile<'_>) -> Result<bool>

Determines if the active log file should be rolled over.

source

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

Trait Implementations§

source§

impl Deserializable for dyn Trigger

source§

fn name() -> &'static str

Returns a name for objects implementing the trait suitable for display in error messages. Read more

Implementors§