pub struct LogConfig {
pub app_name: String,
pub log_level: Level,
pub json_format: bool,
pub log_dir: Option<String>,
pub log_to_stdout: bool,
}Expand description
LogConfig provides options for configuring the logging system
Fields§
§app_name: StringThe name of the application
log_level: LevelThe log level (trace, debug, info, warn, error)
json_format: boolWhether to enable JSON log format (useful for log aggregation)
log_dir: Option<String>Directory where log files should be stored, None for console only
log_to_stdout: boolWhether to log to stdout in addition to files
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LogConfig
impl RefUnwindSafe for LogConfig
impl Send for LogConfig
impl Sync for LogConfig
impl Unpin for LogConfig
impl UnwindSafe for LogConfig
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