Function opentelemetry::global::logger
source · pub fn logger(name: impl Into<Cow<'static, str>>) -> BoxedLogger
Available on crate feature
logs
only.Expand description
Creates a named instance of Logger
via the configured
GlobalLoggerProvider
.
If name
is an empty string, the provider will use a default name.