pub struct Logger;Expand description
日志工具,提供日志系统初始化方法
Implementations§
Source§impl Logger
impl Logger
Sourcepub fn init_with_level(level: String)
pub fn init_with_level(level: String)
Sourcepub fn init_with_config(config: LoggerConfig) -> Result<(), Box<dyn Error>>
pub fn init_with_config(config: LoggerConfig) -> Result<(), Box<dyn Error>>
Auto Trait Implementations§
impl Freeze for Logger
impl RefUnwindSafe for Logger
impl Send for Logger
impl Sync for Logger
impl Unpin for Logger
impl UnwindSafe for Logger
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