2022-11-29 21:53:28 +00:00
|
|
|
// Copyright The OpenTelemetry Authors
|
2024-04-11 07:46:22 +00:00
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
2021-01-31 23:10:16 +00:00
|
|
|
|
2022-11-29 21:53:28 +00:00
|
|
|
package otel // import "go.opentelemetry.io/otel"
|
2021-01-31 23:10:16 +00:00
|
|
|
|
2022-11-29 21:53:28 +00:00
|
|
|
import (
|
|
|
|
"github.com/go-logr/logr"
|
2021-01-31 23:10:16 +00:00
|
|
|
|
2022-11-29 21:53:28 +00:00
|
|
|
"go.opentelemetry.io/otel/internal/global"
|
|
|
|
)
|
2021-01-31 23:10:16 +00:00
|
|
|
|
2022-11-29 21:53:28 +00:00
|
|
|
// SetLogger configures the logger used internally to opentelemetry.
|
|
|
|
func SetLogger(logger logr.Logger) {
|
|
|
|
global.SetLogger(logger)
|
2021-01-31 23:10:16 +00:00
|
|
|
}
|