logs

package
v0.0.0-...-d5da7f7 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2020 License: MIT Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetLogger

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

Types

type Logger

type Logger interface {
	Debugf(format string, args ...interface{})
	Infof(format string, args ...interface{})
	Warningf(format string, args ...interface{})
	Errorf(format string, args ...interface{})
	Fatalf(format string, args ...interface{})
}

func GetLogger

func GetLogger(ctx context.Context) Logger

func NewPrefixedLogger

func NewPrefixedLogger(base Logger, prefix string) Logger

func NewStdLogger

func NewStdLogger() Logger

type LoggerGetter

type LoggerGetter func(ctx context.Context) Logger

Jump to

Keyboard shortcuts

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