pub struct RotationConfig {
pub max_size_bytes: u64,
pub max_files: u32,
pub compress: bool,
}Expand description
Configuration for log rotation
Fields§
§max_size_bytes: u64Maximum size in bytes before rotation
max_files: u32Maximum number of rotated files to keep
compress: boolWhether to compress rotated files
Implementations§
Source§impl RotationConfig
impl RotationConfig
Sourcepub fn production() -> Self
pub fn production() -> Self
Create a configuration for production use
Trait Implementations§
Source§impl Clone for RotationConfig
impl Clone for RotationConfig
Source§fn clone(&self) -> RotationConfig
fn clone(&self) -> RotationConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RotationConfig
impl Debug for RotationConfig
Auto Trait Implementations§
impl Freeze for RotationConfig
impl RefUnwindSafe for RotationConfig
impl Send for RotationConfig
impl Sync for RotationConfig
impl Unpin for RotationConfig
impl UnwindSafe for RotationConfig
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