pub enum RotationStrategy {
KeepAll,
KeepOne,
KeepSome(usize),
}Expand description
The strategy applied to a log file when it exceeds Builder::max_file_size.
Variants§
KeepAll
Will keep all the logs, renaming them to include the date.
KeepOne
Will only keep the most recent log up to its maximal size.
KeepSome(usize)
Will keep some of the most recent logs, renaming them to include the date.
Trait Implementations§
Source§impl Clone for RotationStrategy
impl Clone for RotationStrategy
Auto Trait Implementations§
impl Freeze for RotationStrategy
impl RefUnwindSafe for RotationStrategy
impl Send for RotationStrategy
impl Sync for RotationStrategy
impl Unpin for RotationStrategy
impl UnsafeUnpin for RotationStrategy
impl UnwindSafe for RotationStrategy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more