Trait log4rs_rolling_file::policy::Policy [] [src]

pub trait Policy: Sync + Send + 'static + Debug {
    fn process(&self, log: &mut LogFile) -> Result<(), Box<Error>>;
}

A trait implementing a rolling policy for a RollingFileAppender.

Required Methods

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

Rolls the current log file, if necessary.

This method is called after each log event. It is provided a reference to the current log file.

Implementors