pub trait Roll: Debug + Send + Sync + 'static {
    // Required method
    fn roll(&self, file: &Path) -> Result<()>;
}
Expand description

A trait which processes log files after they have been rolled over.

Required Methods§

source

fn roll(&self, file: &Path) -> Result<()>

Processes the log file.

At the time that this method has been called, the log file has already been closed.

If this method returns successfully, there must no longer be a file at the specified location.

Trait Implementations§

source§

impl Deserializable for dyn Roll

source§

fn name() -> &'static str

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

Implementors§