log

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Debug  = int(zapcore.DebugLevel) * -1
	Info   = int(zapcore.InfoLevel) * -1
	Warn   = int(zapcore.WarnLevel) * -1
	Error  = int(zapcore.ErrorLevel) * -1
	DPanic = int(zapcore.DPanicLevel) * -1
	Panic  = int(zapcore.PanicLevel) * -1
	Fatal  = int(zapcore.FatalLevel) * -1

	FieldError = "error"
)

Variables

This section is empty.

Functions

func FromContext added in v0.1.0

func FromContext(ctx context.Context) logr.Logger

func NewContext added in v0.1.0

func NewContext(ctx context.Context, logger logr.Logger) context.Context

Types

type Config

type Config struct {
	Level string `mapstructure:"level"`
}

type FlushLogger added in v0.1.0

type FlushLogger interface {
	logr.Logger
	Flush()
}

func New

func New(conf *Config) FlushLogger

Jump to

Keyboard shortcuts

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