otellog

package
v0.0.0-...-c7a00cb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextLogger

type ContextLogger struct {
}

ContextLogger is a zapcore.Core that logs to the current span in the context.

log configuration set the `callerSkip: 4` for matching the stacktrace

func NewContextZapLogger

func NewContextZapLogger() *ContextLogger

func (*ContextLogger) LogFields

func (l *ContextLogger) LogFields(logger *log.Logger, ctx context.Context, lvl zapcore.Level, msg string, fields []zap.Field)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL