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