pub struct Logger { /* private fields */ }
Expand description
The object for emitting LogRecord
s.
Implementations§
source§impl Logger
impl Logger
sourcepub fn provider(&self) -> &LoggerProvider
👎Deprecated since 0.27.1: This method was intended for appender developers, but has no defined use-case in typical workflows. It is deprecated and will be removed in the next major release.
pub fn provider(&self) -> &LoggerProvider
LoggerProvider associated with this logger.
sourcepub fn instrumentation_scope(&self) -> &InstrumentationScope
👎Deprecated since 0.27.1: This method was intended for appender developers, but has no defined use-case in typical workflows. It is deprecated and will be removed in the next major release.
pub fn instrumentation_scope(&self) -> &InstrumentationScope
Instrumentation scope of this logger.
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 !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