Struct opentelemetry_api::global::GlobalLoggerProvider
source · pub struct GlobalLoggerProvider { /* private fields */ }
Expand description
Represents the globally configured LoggerProvider
instance.
Trait Implementations§
source§impl Clone for GlobalLoggerProvider
impl Clone for GlobalLoggerProvider
source§fn clone(&self) -> GlobalLoggerProvider
fn clone(&self) -> GlobalLoggerProvider
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 GlobalLoggerProvider
impl Debug for GlobalLoggerProvider
source§impl LoggerProvider for GlobalLoggerProvider
impl LoggerProvider for GlobalLoggerProvider
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 GlobalLoggerProvider
impl Send for GlobalLoggerProvider
impl Sync for GlobalLoggerProvider
impl Unpin for GlobalLoggerProvider
impl !UnwindSafe for GlobalLoggerProvider
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
.