logging

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EnvDebug = "debug"
	EnvProd  = "prod"
)

Functions

func Create

func Create(name string, cfg zap.Config) *zap.SugaredLogger

Types

type KVLogger added in v0.14.0

type KVLogger interface {
	Debug(msg string, keyvals ...interface{})
	Info(msg string, keyvals ...interface{})
	Warn(msg string, keyvals ...interface{})
	Error(msg string, keyvals ...interface{})
	With(keyvals ...interface{}) KVLogger
}

func AddLogRef added in v0.15.0

func AddLogRef(l KVLogger, sdHash string) KVLogger

type NoopKVLogger added in v0.14.0

type NoopKVLogger struct {
	logur.NoopKVLogger
}

func (NoopKVLogger) With added in v0.14.0

func (l NoopKVLogger) With(keyvals ...interface{}) KVLogger

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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