peridot/vendor/go.opentelemetry.io/otel/internal_logging.go

16 lines
348 B
Go
Raw Normal View History

// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
2022-07-07 20:11:50 +00:00
package otel // import "go.opentelemetry.io/otel"
2022-07-07 20:11:50 +00:00
import (
"github.com/go-logr/logr"
2022-07-07 20:11:50 +00:00
"go.opentelemetry.io/otel/internal/global"
)
// SetLogger configures the logger used internally to opentelemetry.
func SetLogger(logger logr.Logger) {
global.SetLogger(logger)
2022-07-07 20:11:50 +00:00
}