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

A trait implementing a rolling policy for a RollingFileAppender.

Required methods

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.

Trait Implementations

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

Implementors