pub struct LoggerConfig {
pub min_level: LogLevel,
pub print_realtime: bool,
pub use_colors: bool,
pub max_entries: usize,
pub log_dir: Option<PathBuf>,
}Expand description
Configuration for the test logger
Fields§
§min_level: LogLevelMinimum log level to capture
print_realtime: boolWhether to print logs to stdout in real-time
use_colors: boolWhether to use ANSI colors when printing
max_entries: usizeMaximum number of entries to keep in memory (0 = unlimited)
log_dir: Option<PathBuf>Directory for persisting logs
Trait Implementations§
Source§impl Clone for LoggerConfig
impl Clone for LoggerConfig
Source§fn clone(&self) -> LoggerConfig
fn clone(&self) -> LoggerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LoggerConfig
impl Debug for LoggerConfig
Auto Trait Implementations§
impl Freeze for LoggerConfig
impl RefUnwindSafe for LoggerConfig
impl Send for LoggerConfig
impl Sync for LoggerConfig
impl Unpin for LoggerConfig
impl UnsafeUnpin for LoggerConfig
impl UnwindSafe for LoggerConfig
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