pub struct Logger { /* private fields */ }Expand description
A handle that writes records for one target.
Implementations§
Source§impl Logger
impl Logger
pub fn new(target: impl Into<String>) -> Self
pub fn target(&self) -> &str
pub fn error(&self, message: impl Into<String>)
pub fn warn(&self, message: impl Into<String>)
pub fn info(&self, message: impl Into<String>)
pub fn debug(&self, message: impl Into<String>)
pub fn trace(&self, message: impl Into<String>)
Trait Implementations§
Auto Trait Implementations§
impl Forget for Logger
impl Freeze for Logger
impl Move for Logger
impl RefUnwindSafe for Logger
impl Send for Logger
impl Sync for Logger
impl Unpin for Logger
impl UnsafeUnpin 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