1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-11-24 08:22:25 +02:00
opentelemetry-go/internal_logging.go

16 lines
348 B
Go
Raw Permalink Normal View History

// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
2021-11-24 17:54:30 +02:00
package otel // import "go.opentelemetry.io/otel"
import (
"github.com/go-logr/logr"
2021-11-24 22:06:39 +02:00
"go.opentelemetry.io/otel/internal/global"
)
// SetLogger configures the logger used internally to opentelemetry.
func SetLogger(logger logr.Logger) {
2021-11-24 22:06:39 +02:00
global.SetLogger(logger)
}