logger

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

View Source
const (
	DebugLevel = iota
	InfoLevel
	WarnLevel
	FatalLevel
)

Log levels.

Variables

This section is empty.

Functions

func Debug

func Debug(a ...interface{})

Debug output the debug log.

func Debugf

func Debugf(format string, a ...interface{})

Debugf output the debug log with formatted.

func Fatal

func Fatal(a ...interface{})

Fatal output the fatal log.

func Fatalf

func Fatalf(format string, a ...interface{})

Fatalf output the fatal log with formatted.

func Info

func Info(a ...interface{})

Info output the information log.

func Infof

func Infof(format string, a ...interface{})

Infof output the information log with formatted.

func LogLevel added in v0.3.0

func LogLevel() int

LogLevel returns log level.

func SetLogLevel

func SetLogLevel(level int)

SetLogLevel changes log level.

func SetOutput

func SetOutput(output *os.File)

SetOutput changes the output destination of log.

func Warn

func Warn(a ...interface{})

Warn output the warning log.

func Warnf

func Warnf(format string, a ...interface{})

Warnf output the warning log with formatted.

Types

This section is empty.

Jump to

Keyboard shortcuts

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