pub struct FileConfig {
pub path: String,
pub max_size_bytes: u64,
pub max_files: u64,
}Expand description
Configuration for file-based logging.
Fields§
§path: StringPath where log files will be written.
max_size_bytes: u64Maximum size in bytes for each log file. Set to 0 to disable size-based rotation.
max_files: u64Maximum total number of files (current + rotated) to keep on disk. When this limit is exceeded, the oldest rotated files are deleted. Set to 0 to disable file cleanup.
Auto Trait Implementations§
impl Freeze for FileConfig
impl RefUnwindSafe for FileConfig
impl Send for FileConfig
impl Sync for FileConfig
impl Unpin for FileConfig
impl UnwindSafe for FileConfig
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