pub struct LogConfig {
pub enabled: bool,
pub level: LogLevel,
pub buffer_size: usize,
pub flush_interval_seconds: u64,
pub retention_days: u32,
pub structured_logging: bool,
pub include_stack_trace: bool,
pub log_to_file: bool,
pub log_file_path: Option<String>,
pub log_rotation_size_mb: u64,
pub max_log_files: u32,
}Expand description
Logging configuration
Fields§
§enabled: bool§level: LogLevel§buffer_size: usize§flush_interval_seconds: u64§retention_days: u32§structured_logging: bool§include_stack_trace: bool§log_to_file: bool§log_file_path: Option<String>§log_rotation_size_mb: u64§max_log_files: u32Trait Implementations§
Source§impl<'de> Deserialize<'de> for LogConfig
impl<'de> Deserialize<'de> for LogConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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