pub struct NoopLoggerProvider(/* private fields */);
Available on crate feature
logs
only.Expand description
A no-op implementation of a LoggerProvider
.
Implementations§
Trait Implementations§
Source§impl Clone for NoopLoggerProvider
impl Clone for NoopLoggerProvider
Source§fn clone(&self) -> NoopLoggerProvider
fn clone(&self) -> NoopLoggerProvider
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NoopLoggerProvider
impl Debug for NoopLoggerProvider
Source§impl Default for NoopLoggerProvider
impl Default for NoopLoggerProvider
Source§fn default() -> NoopLoggerProvider
fn default() -> NoopLoggerProvider
Returns the “default value” for a type. Read more
Source§impl LoggerProvider for NoopLoggerProvider
impl LoggerProvider for NoopLoggerProvider
Source§fn logger_with_scope(&self, _scope: InstrumentationScope) -> Self::Logger
fn logger_with_scope(&self, _scope: InstrumentationScope) -> Self::Logger
Returns a new logger with the given instrumentation scope. Read more
Auto Trait Implementations§
impl Freeze for NoopLoggerProvider
impl RefUnwindSafe for NoopLoggerProvider
impl Send for NoopLoggerProvider
impl Sync for NoopLoggerProvider
impl Unpin for NoopLoggerProvider
impl UnwindSafe for NoopLoggerProvider
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Available on crate feature
trace
only.Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Available on crate feature
trace
only.