pub struct Log4 {
pub enable: bool,
/* private fields */
}Fields§
§enable: bool日志对象是否启用
Implementations§
Source§impl Log4
impl Log4
pub fn new() -> Self
pub fn set_log_impl(&mut self, delegate: Box<dyn LogImpl>) -> &mut Self
pub fn info<T: Debug>(&self, ss: T)
pub fn warn<T: Debug>(&self, ss: T)
pub fn error<T: Debug>(&self, ss: T)
pub fn add_tag<T: Debug>(&mut self, tag: T) -> &mut Log4
pub fn fork(&self) -> Log4
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Log4
impl !RefUnwindSafe for Log4
impl !Send for Log4
impl Unpin for Log4
impl UnsafeUnpin for Log4
impl !UnwindSafe for Log4
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