Struct cyfs_debug::LogConfig
source · [−]pub struct LogConfig {
pub log_dir: PathBuf,
pub basename: String,
pub global: LogModuleConfig,
pub modules: HashMap<String, LogModuleConfig>,
}Fields
log_dir: PathBufbasename: Stringglobal: LogModuleConfigmodules: HashMap<String, LogModuleConfig>Implementations
sourceimpl LogConfig
impl LogConfig
pub fn new(log_dir: PathBuf) -> Self
pub fn set_log_dir(&mut self, log_dir: PathBuf)
pub fn get_mod_config(&self, name: Option<&str>) -> &LogModuleConfig
pub fn load(&mut self, config_node: Value) -> BuckyResult<()>
pub fn add_mod(&mut self, module: LogModuleConfig)
pub fn disable_module_log(&mut self, name: &str, level: &LogLevel)
pub fn disable_async_std_log(&mut self)
Auto Trait Implementations
impl RefUnwindSafe for LogConfig
impl Send for LogConfig
impl Sync for LogConfig
impl Unpin for LogConfig
impl UnwindSafe for LogConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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