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]
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