pub struct LoggingConfig {
pub log_path: PathBuf,
pub format: LogFormat,
pub rotate_size_bytes: u64,
pub max_log_files: usize,
pub level: LogLevel,
}Expand description
Logging configuration.
Fields§
§log_path: PathBufPath to log file
format: LogFormatLog format (json or text)
rotate_size_bytes: u64Rotate logs at this size (bytes)
max_log_files: usizeMaximum number of rotated log files to keep
level: LogLevelMinimum log level
Trait Implementations§
Source§impl Debug for LoggingConfig
impl Debug for LoggingConfig
Source§impl<'de> Deserialize<'de> for LoggingConfig
impl<'de> Deserialize<'de> for LoggingConfig
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
Source§impl Drop for LoggingConfig
impl Drop for LoggingConfig
Source§impl Serialize for LoggingConfig
impl Serialize for LoggingConfig
Auto Trait Implementations§
impl Freeze for LoggingConfig
impl RefUnwindSafe for LoggingConfig
impl Send for LoggingConfig
impl Sync for LoggingConfig
impl Unpin for LoggingConfig
impl UnsafeUnpin 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