xkit

package
v0.0.0-...-db5d5ad Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

Logger wraps a go-kit logger instance in a Jaeger client compatible one.

func NewLogger

func NewLogger(kitlogger log.Logger, options ...LoggerOption) *Logger

NewLogger creates a new Jaeger client logger from a go-kit one.

func (*Logger) Error

func (l *Logger) Error(msg string)

Error implements the github.com/uber/jaeger-client-go/log.Logger interface.

func (*Logger) Infof

func (l *Logger) Infof(msg string, args ...interface{})

Infof implements the github.com/uber/jaeger-client-go/log.Logger interface.

type LoggerOption

type LoggerOption func(*Logger)

LoggerOption sets a parameter for the Logger.

func MessageKey

func MessageKey(key string) LoggerOption

MessageKey sets the key for the actual log message. By default, it's "msg".

Jump to

Keyboard shortcuts

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