logger

package
v0.0.0-...-3e16b6b Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultLogger

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

DefaultLogger ...

func (*DefaultLogger) Debug

func (d *DefaultLogger) Debug(ctx context.Context, msg string, keysAndValues ...interface{})

Debug ...

func (*DefaultLogger) Error

func (d *DefaultLogger) Error(ctx context.Context, msg string, keysAndValues ...interface{})

Error ...

func (*DefaultLogger) Info

func (d *DefaultLogger) Info(ctx context.Context, msg string, keysAndValues ...interface{})

Info ...

func (*DefaultLogger) Sync

func (d *DefaultLogger) Sync()

Sync ...

func (*DefaultLogger) Warn

func (d *DefaultLogger) Warn(ctx context.Context, msg string, keysAndValues ...interface{})

Warn ...

type Logger

type Logger interface {
	Info(ctx context.Context, msg string, keysAndValues ...interface{})
	Error(ctx context.Context, msg string, keysAndValues ...interface{})
	Debug(ctx context.Context, msg string, keysAndValues ...interface{})
	Warn(ctx context.Context, msg string, keysAndValues ...interface{})
	Sync()
}

Logger ...

func NewLogger

func NewLogger(t opentracing.Tracer) (Logger, func())

NewLogger ...

Jump to

Keyboard shortcuts

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