Struct opentelemetry::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
source§fn versioned_logger(
&self,
_name: impl Into<Cow<'static, str>>,
_version: Option<Cow<'static, str>>,
_schema_url: Option<Cow<'static, str>>,
_attributes: Option<Vec<KeyValue>>,
) -> Self::Logger
fn versioned_logger( &self, _name: impl Into<Cow<'static, str>>, _version: Option<Cow<'static, str>>, _schema_url: Option<Cow<'static, str>>, _attributes: Option<Vec<KeyValue>>, ) -> Self::Logger
👎Deprecated since 0.23.0: Please use logger_builder() instead
Deprecated, use
LoggerProvider::logger_builder()
Read moreAuto 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
)