log

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Error = iota
	Warning
	Info
	Debug
)

Variables

View Source
var (
	Level = Info
)

Functions

func AddFlags added in v0.4.38

func AddFlags(flags *pflag.FlagSet)

func Configure added in v0.4.38

func Configure()

func Debugf

func Debugf(template string, args ...interface{})

func Errorf

func Errorf(template string, args ...interface{})

func Infof

func Infof(template string, args ...interface{})

func Log

func Log(level int, template string, args ...interface{})

func Warnf

func Warnf(template string, args ...interface{})

Types

type TempLevel added in v0.4.29

type TempLevel struct {
	// contains filtered or unexported fields
}

func SetTempLevel added in v0.4.29

func SetTempLevel(level int) *TempLevel

func (*TempLevel) Restore added in v0.4.29

func (l *TempLevel) Restore()

Jump to

Keyboard shortcuts

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