pub struct LoggingConfig {
pub log_to_stdout: bool,
pub stdout_log_level: Level,
pub log_to_file: bool,
pub file_log_level: Level,
pub log_file_path: String,
pub log_file_append: bool,
pub log_max_size: Option<u64>,
pub log_max_files: Option<u32>,
pub tui_running: Option<bool>,
}Expand description
Logging config
Fields§
§log_to_stdout: boolwhether to log to stdout
stdout_log_level: Levellogging level for stdout
log_to_file: boolwhether to log to file
file_log_level: Levellog file level
log_file_path: StringLog file path
log_file_append: boolWhether to append to log or replace
log_max_size: Option<u64>Size of the log in bytes to rotate over (optional)
log_max_files: Option<u32>Number of the log files to rotate over (optional)
tui_running: Option<bool>Whether the tui is running (optional)
Trait Implementations§
Source§impl Clone for LoggingConfig
impl Clone for LoggingConfig
Source§fn clone(&self) -> LoggingConfig
fn clone(&self) -> LoggingConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 LoggingConfig
impl Debug for LoggingConfig
Source§impl Default for LoggingConfig
impl Default for LoggingConfig
Source§fn default() -> LoggingConfig
fn default() -> LoggingConfig
Returns the “default value” for a type. Read more
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 PartialEq for LoggingConfig
impl PartialEq for LoggingConfig
Source§impl Serialize for LoggingConfig
impl Serialize for LoggingConfig
impl StructuralPartialEq 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 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