pub trait ObjectSafeLoggerProvider {
// Required method
fn boxed_logger(
&self,
library: Arc<InstrumentationLibrary>
) -> Box<dyn Logger + Send + Sync + 'static>;
}
Expand description
Allows a specific LoggerProvider
to be used generically, by mirroring
the interface, and boxing the returned types.
Required Methods§
sourcefn boxed_logger(
&self,
library: Arc<InstrumentationLibrary>
) -> Box<dyn Logger + Send + Sync + 'static>
fn boxed_logger( &self, library: Arc<InstrumentationLibrary> ) -> Box<dyn Logger + Send + Sync + 'static>
Creates a versioned named Logger
instance that is a trait object
through the underlying LoggerProvider
.