Trait Trigger

Source
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§