Struct grin_util::logger::LoggingConfig
source · 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: bool
whether to log to stdout
stdout_log_level: Level
logging level for stdout
log_to_file: bool
whether to log to file
file_log_level: Level
log file level
log_file_path: String
Log file path
log_file_append: bool
Whether 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 copy 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§fn eq(&self, other: &LoggingConfig) -> bool
fn eq(&self, other: &LoggingConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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