log

package
v3.18.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: Apache-2.0 Imports: 9 Imported by: 9

Documentation

Index

Constants

View Source
const (
	TRACE = Level(level.TRACE)
	DEBUG = Level(level.DEBUG)
	INFO  = Level(level.INFO)
	WARN  = Level(level.WARN)
	ERROR = Level(level.ERROR)
	FATAL = Level(level.FATAL)

	QUIET = Level(level.QUIET)
)

Variables

This section is empty.

Functions

func Coordination added in v3.10.0

func Coordination(l Logger, details trace.Details) (t trace.Coordination)

func Discovery added in v3.10.0

func Discovery(log Logger, details trace.Details) (t trace.Discovery)

func Driver

func Driver(log Logger, details trace.Details) (t trace.Driver)

Driver makes trace.Driver with internal logging

func Ratelimiter added in v3.10.0

func Ratelimiter(log Logger, details trace.Details) (t trace.Ratelimiter)

func Retry added in v3.10.0

func Retry(l Logger, details trace.Details) (t trace.Retry)

func Scheme added in v3.10.0

func Scheme(log Logger, details trace.Details) (t trace.Scheme)

func Scripting added in v3.10.0

func Scripting(log Logger, details trace.Details) (t trace.Scripting)

func Secret added in v3.11.6

func Secret(secret string) string

func Table

func Table(l Logger, details trace.Details) (t trace.Table)

Table makes trace.Table with internal logging nolint:gocyclo

Types

type Level added in v3.15.0

type Level level.Level

func FromString added in v3.15.0

func FromString(l string) Level

type Logger

type Logger interface {
	// Tracef logs at Trace logger level using fmt formatter
	Tracef(format string, args ...interface{})
	// Debugf logs at Debug logger level using fmt formatter
	Debugf(format string, args ...interface{})
	// Infof logs at Info logger level using fmt formatter
	Infof(format string, args ...interface{})
	// Warnf logs at Warn logger level using fmt formatter
	Warnf(format string, args ...interface{})
	// Errorf logs at Error logger level using fmt formatter
	Errorf(format string, args ...interface{})
	// Fatalf logs at Fatal logger level using fmt formatter
	Fatalf(format string, args ...interface{})

	// WithName provide applying sub-scope of logger messages
	WithName(name string) Logger
}

Jump to

Keyboard shortcuts

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