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