Function opentelemetry_api::global::set_logger_provider
source · pub fn set_logger_provider<L, P>(new_provider: P) -> GlobalLoggerProviderwhere
L: Logger + Send + Sync + 'static,
P: LoggerProvider<Logger = L> + Send + Sync + 'static,
Expand description
Sets the given LoggerProvider
instance as the current global provider,
returning the LoggerProvider
instance that was previously set as global
provider.