pub struct LoggerConfig {
pub log_file: Option<PathBuf>,
pub level: Level,
pub log_to_stdout: bool,
pub include_timestamp: bool,
pub include_module: bool,
pub use_colors: bool,
}Expand description
Logger configuration.
Fields§
§log_file: Option<PathBuf>Log file path (None for stdout only)
level: LevelLog level
log_to_stdout: boolWhether to log to stdout
include_timestamp: boolWhether to include timestamps
include_module: boolWhether to include module names
use_colors: boolWhether to use colors (for stdout)
Trait Implementations§
Source§impl Clone for LoggerConfig
impl Clone for LoggerConfig
Source§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