Struct log4rs_rolling_file::policy::compound::CompoundPolicy [] [src]

pub struct CompoundPolicy {
    // some fields omitted
}

A rolling policy which delegates to a "trigger" and "roller".

The trigger determines if the log file should roll, for example, by checking the size of the file. The roller processes the old log file, for example, by compressing it and moving it to a different location.

Methods

impl CompoundPolicy
[src]

fn new(trigger: Box<Trigger>, roller: Box<Roll>) -> CompoundPolicy

Creates a new CompoundPolicy.

Trait Implementations

impl Policy for CompoundPolicy
[src]

fn process(&self, log: &mut LogFile) -> Result<(), Box<Error>>

Rolls the current log file, if necessary. Read more

Derived Implementations

impl Debug for CompoundPolicy
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.