pub struct Logger { /* private fields */ }Implementations§
Source§impl Logger
impl Logger
pub fn new(target: Option<&str>) -> Self
pub fn target(&self) -> &str
pub fn debug(&self, message: &str)
pub fn info(&self, message: &str)
pub fn warn(&self, message: &str)
pub fn error(&self, message: &str)
pub fn log(&self, level: &str, message: &str)
pub fn drain_events_for_tests() -> Vec<LogEvent>
Trait Implementations§
impl Eq for Logger
impl StructuralPartialEq for Logger
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