log4rs-rolling-file 0.2.0

A rolling file appender for log4rs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Triggers

use std::error::Error;
use std::fmt;

use LogFile;

pub mod size;

/// A trait which identifies if the active log file should be rolled over.
pub trait Trigger: fmt::Debug + Send + Sync + 'static {
    /// Determines if the active log file should be rolled over.
    fn trigger(&self, file: &LogFile) -> Result<bool, Box<Error>>;
}