pub struct LoggingConfig {
pub log_dir: PathBuf,
pub max_bytes: u64,
pub backup_count: usize,
pub ring_buffer_size: usize,
pub level: LevelFilter,
pub console: bool,
}Expand description
Configuration for the LoggingHelper.
Fields§
§log_dir: PathBufDirectory for log files.
max_bytes: u64Maximum size of a single log file in bytes.
backup_count: usizeNumber of backup files to keep.
ring_buffer_size: usizeMaximum number of lines in the ring buffer.
level: LevelFilterLog level filter.
console: boolMirror every log line to the console (stdout) in addition to the file and ring buffer. Enabled by default; turn off for headless/service operation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LoggingConfig
impl RefUnwindSafe for LoggingConfig
impl Send for LoggingConfig
impl Sync for LoggingConfig
impl Unpin for LoggingConfig
impl UnwindSafe for LoggingConfig
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