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§

source

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.

Implementors§

source§

impl<L, P> ObjectSafeLoggerProvider for Pwhere L: Logger + Send + Sync + 'static, P: LoggerProvider<Logger = L>,