pub struct LogConfig {
pub log_dir: PathBuf,
pub basename: String,
pub global: LogModuleConfig,
pub modules: HashMap<String, LogModuleConfig>,
}Fields§
§log_dir: PathBuf§basename: String§global: LogModuleConfig§modules: HashMap<String, LogModuleConfig>Implementations§
Source§impl 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 Freeze for LogConfig
impl RefUnwindSafe for LogConfig
impl Send for LogConfig
impl Sync for LogConfig
impl Unpin for LogConfig
impl UnwindSafe for LogConfig
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more