log

package
v1.16.7 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugf

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

func Errorf

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

func Fatalf

func Fatalf(msg string, args ...interface{})

func Infof

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

func RegisterLogger

func RegisterLogger(l Logger)

func SetLevel

func SetLevel(level LogLevel)

func Warnf

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

Types

type LogLevel

type LogLevel uint8
const (
	DEBUG LogLevel = iota
	INFO
	WARN
	ERROR
	NONE
)

type Logger

type Logger interface {
	SetLevel(level LogLevel)
	Debugf(msg string, args ...interface{})
	Infof(msg string, args ...interface{})
	Warnf(msg string, args ...interface{})
	Errorf(msg string, args ...interface{})
	Fatalf(msg string, args ...interface{})
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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