Struct cyfs_debug::LogModuleConfig
source · pub struct LogModuleConfig {
pub name: String,
pub level: LogLevel,
pub console: LogLevel,
pub file: bool,
pub file_name: Option<String>,
pub file_max_size: u64,
pub file_max_count: u32,
}Fields§
§name: String§level: LogLevel§console: LogLevel§file: bool§file_name: Option<String>§file_max_size: u64§file_max_count: u32Implementations§
source§impl LogModuleConfig
impl LogModuleConfig
pub fn new_default(name: &str) -> Self
pub fn is_global_module(&self) -> bool
pub fn max_level(&self) -> LogLevel
pub fn set_level(&mut self, level: &str)
pub fn set_console(&mut self, level: &str)
pub fn set_file(&mut self, enable: bool)
pub fn set_file_max_size(&mut self, file_max_size: u64)
pub fn set_file_max_count(&mut self, file_max_count: u32)
pub fn load(&mut self, node: &Table)
Trait Implementations§
source§impl Clone for LogModuleConfig
impl Clone for LogModuleConfig
source§fn clone(&self) -> LogModuleConfig
fn clone(&self) -> LogModuleConfig
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 more