logutil

package
v0.0.0-...-300ac43 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Elapsed

func Elapsed(ctx context.Context, tick time.Duration, msg string)

func LogWriter

func LogWriter(ctx context.Context) io.Writer

func NewJaegerLogger

func NewJaegerLogger(logger *zerolog.Logger) jaeger.Logger

func NewWriter

func NewWriter(logger *zerolog.Logger, level zerolog.Level) io.WriteCloser

func WithLogWriter

func WithLogWriter(ctx context.Context, writer io.Writer) context.Context

func WriteRemoteLogs

func WriteRemoteLogs(ctx context.Context, remote io.Reader, writer io.Writer) error

Types

type Logger

type Logger interface {
	// Error logs a message at error priority
	Error(msg string)

	// Infof logs a message at info priority
	Infof(msg string, args ...interface{})
}

type WriteFlusher

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

func NewWriteFlusher

func NewWriteFlusher(w io.Writer) *WriteFlusher

func (*WriteFlusher) Write

func (wf *WriteFlusher) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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