log

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugf

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

Debugf prints the message to stderr, with no prefix.

func Error

func Error(msg string)

Error prints the message to stderr, with a red ERROR prefix.

func Errorf

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

Errorf prints the message to stderr, with a red ERROR prefix.

func SetLevel

func SetLevel(l Level)

SetLevel for the global logger.

func Warnf

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

Warnf prints the message to stderr, with a yellow WARN prefix.

Types

type Level

type Level uint8
const (
	ErrorLevel Level = iota
	WarnLevel
	DebugLevel
)

Jump to

Keyboard shortcuts

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