Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RootLogger ¶
type RootLogger interface { StartSpan(ctx context.Context, op string, attrs ...attribute.KeyValue) (context.Context, ScopedLogger) Debug(span trace.Span, msg string, attrs ...attribute.KeyValue) Debugf(span trace.Span, format string, args ...interface{}) Info(span trace.Span, msg string, attrs ...attribute.KeyValue) Infof(span trace.Span, format string, args ...interface{}) Warn(span trace.Span, msg string, attrs ...attribute.KeyValue) Warnf(span trace.Span, format string, args ...interface{}) Error(span trace.Span, err error, attrs ...attribute.KeyValue) error Errorf(span trace.Span, msg string, args ...interface{}) error }
type ScopedLogger ¶
type ScopedLogger interface { StartSpan(op string, attrs ...attribute.KeyValue) (context.Context, ScopedLogger) EndSpan(opts ...trace.SpanEndOption) Debug(msg string, attrs ...attribute.KeyValue) Debugf(format string, args ...interface{}) Info(msg string, attrs ...attribute.KeyValue) Infof(format string, args ...interface{}) Warn(msg string, attrs ...attribute.KeyValue) Warnf(format string, args ...interface{}) Error(err error, attrs ...attribute.KeyValue) error Errorf(msg string, args ...interface{}) error }
func LoggerFromContext ¶
func LoggerFromContext(ctx context.Context) ScopedLogger
func NewScopedLogger ¶
func NewScopedLogger(ctx context.Context, span trace.Span, logger RootLogger) (context.Context, ScopedLogger)
Click to show internal directories.
Click to hide internal directories.