pub struct Logger { /* private fields */ }Available on crate feature
logging only.Expand description
Simple structured logger.
Lightweight wrapper that prints timestamped, level-filtered messages to
stdout. Each Logger owns its module name as a String — creating one
allocates, so prefer storing it rather than constructing per-call.
For high-throughput or production logging, consider pairing this with the
log crate facade.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze 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