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: Stringlevel: LogLevelconsole: LogLevelfile: boolfile_name: Option<String>file_max_size: u64file_max_count: u32Implementations
sourceimpl 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
sourceimpl Clone for LogModuleConfig
impl Clone for LogModuleConfig
sourcefn clone(&self) -> LogModuleConfig
fn clone(&self) -> LogModuleConfig
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 moreAuto Trait Implementations
impl RefUnwindSafe for LogModuleConfig
impl Send for LogModuleConfig
impl Sync for LogModuleConfig
impl Unpin for LogModuleConfig
impl UnwindSafe for LogModuleConfig
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