log

package
v0.0.0-...-389e7ce Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithLoggerContext

func WithLoggerContext(ctx context.Context, logger Logger) context.Context

Types

type Logger

type Logger interface {
	Debugf(template string, args ...interface{})
	Infof(template string, args ...interface{})
	Warnf(template string, args ...interface{})
	Errorf(template string, args ...interface{})

	With(args ...interface{}) Logger
	WithErr(err error) Logger
	Named(name string) Logger
}

func From

func From(ctx context.Context) Logger

func NopLogger

func NopLogger() Logger

func TestLogger

func TestLogger(t *testing.T) Logger

func Wrap

func Wrap(zap *zap.SugaredLogger) Logger

Jump to

Keyboard shortcuts

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