pub struct LogFileConfig {
pub directory: String,
pub base_name: String,
pub max_size_bytes: u64,
pub keep_count: usize,
pub delete_old_on_start: bool,
}Expand description
Configuration for file-based logging with rotation.
Fields§
§directory: StringDirectory where log files will be stored.
base_name: StringBase name for the log files.
max_size_bytes: u64Maximum size of a log file in bytes before rotation.
keep_count: usizeNumber of historical log files to keep.
delete_old_on_start: boolWhether to delete old logs on startup.
Trait Implementations§
Source§impl Clone for LogFileConfig
impl Clone for LogFileConfig
Source§fn clone(&self) -> LogFileConfig
fn clone(&self) -> LogFileConfig
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 moreAuto Trait Implementations§
impl Freeze for LogFileConfig
impl RefUnwindSafe for LogFileConfig
impl Send for LogFileConfig
impl Sync for LogFileConfig
impl Unpin for LogFileConfig
impl UnwindSafe for LogFileConfig
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