Struct grin_util::types::LoggingConfig
source · pub struct LoggingConfig {
pub log_to_stdout: bool,
pub stdout_log_level: LogLevel,
pub log_to_file: bool,
pub file_log_level: LogLevel,
pub log_file_path: String,
pub log_file_append: bool,
pub log_max_size: Option<u64>,
pub tui_running: Option<bool>,
}
Expand description
Logging config
Fields
log_to_stdout: bool
whether to log to stdout
stdout_log_level: LogLevel
logging level for stdout
log_to_file: bool
whether to log to file
file_log_level: LogLevel
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)
tui_running: Option<bool>
Whether the tui is running (optional)
Trait Implementations
sourceimpl Clone for LoggingConfig
impl Clone for LoggingConfig
sourcefn clone(&self) -> LoggingConfig
fn clone(&self) -> LoggingConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for LoggingConfig
impl Debug for LoggingConfig
sourceimpl Default for LoggingConfig
impl Default for LoggingConfig
sourcefn default() -> LoggingConfig
fn default() -> LoggingConfig
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for LoggingConfig
impl<'de> Deserialize<'de> for LoggingConfig
sourcefn 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
sourceimpl PartialEq<LoggingConfig> for LoggingConfig
impl PartialEq<LoggingConfig> for LoggingConfig
sourcefn eq(&self, other: &LoggingConfig) -> bool
fn eq(&self, other: &LoggingConfig) -> bool
sourceimpl Serialize for LoggingConfig
impl Serialize for LoggingConfig
impl StructuralPartialEq for LoggingConfig
Auto Trait Implementations
impl RefUnwindSafe for LoggingConfig
impl Send for LoggingConfig
impl Sync for LoggingConfig
impl Unpin for LoggingConfig
impl UnwindSafe for LoggingConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more