Struct opentelemetry_api::logs::NoopLoggerProvider
source · pub struct NoopLoggerProvider(/* private fields */);
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 library_logger(&self, _library: Arc<InstrumentationLibrary>) -> Self::Logger
fn library_logger(&self, _library: Arc<InstrumentationLibrary>) -> Self::Logger
Returns a new versioned logger with the given instrumentation library. Read more
Auto Trait Implementations§
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> 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> ⓘ
source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
source§impl<L, P> ObjectSafeLoggerProvider for Pwhere
L: Logger + Send + Sync + 'static,
P: LoggerProvider<Logger = L>,
impl<L, P> ObjectSafeLoggerProvider for Pwhere L: Logger + Send + Sync + 'static, P: LoggerProvider<Logger = L>,
source§fn boxed_logger(
&self,
library: Arc<InstrumentationLibrary>
) -> Box<dyn Logger + Send + Sync>
fn boxed_logger( &self, library: Arc<InstrumentationLibrary> ) -> Box<dyn Logger + Send + Sync>
Creates a versioned named
Logger
instance that is a trait object
through the underlying LoggerProvider
.