Struct log4rs_rolling_file::policy::compound::trigger::size::SizeTrigger
[−]
[src]
pub struct SizeTrigger { // some fields omitted }
A trigger which rolls the log once it has passed a certain size.
Methods
impl SizeTrigger
[src]
fn new(limit: u64) -> SizeTrigger
Returns a new trigger which rolls the log once it has passed the specified size in bytes.
Trait Implementations
impl Trigger for SizeTrigger
[src]
fn trigger(&self, file: &LogFile) -> Result<bool, Box<Error>>
Determines if the active log file should be rolled over.