pub struct HwLogger;
Available on crate feature
logging
only.Expand description
This struct allows you to use the
log
crate’s macros
instead of the ones provided by this crate.
Example
use hw_msg::logging::HwLogger;
log::set_logger(&hw_msg::HwLogger).unwrap();
log::info!("We're using `hw_msg` from the `log` crate!");
Note: This struct is currently incompatible with the log::trace
macro, and will panic if
you call it with this logger.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for HwLogger
impl Send for HwLogger
impl Sync for HwLogger
impl Unpin for HwLogger
impl UnwindSafe for HwLogger
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