You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-11-29 23:07:45 +02:00
Add the log/embedded package (#4932)
* Add the log/embedded package * Embed the Logger and LoggerProvider types
This commit is contained in:
@@ -14,13 +14,18 @@
|
||||
|
||||
package log // import "go.opentelemetry.io/otel/log"
|
||||
|
||||
import "go.opentelemetry.io/otel/log/embedded"
|
||||
|
||||
// LoggerProvider provides access to [Logger].
|
||||
//
|
||||
// Warning: Methods may be added to this interface in minor releases. See
|
||||
// package documentation on API implementation for information on how to set
|
||||
// default behavior for unimplemented methods.
|
||||
type LoggerProvider interface {
|
||||
// TODO (#4909): embed an embedded type from otel/log/embedded.
|
||||
// Users of the interface can ignore this. This embedded type is only used
|
||||
// by implementations of this interface. See the "API Implementations"
|
||||
// section of the package documentation for more information.
|
||||
embedded.LoggerProvider
|
||||
|
||||
// Logger returns a new [Logger] with the provided name and configuration.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user