log

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: Apache-2.0 Imports: 2 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 Infof added in v1.9.0

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

Infof prints the message to stderr, with no 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
	InfoLevel
	DebugLevel
)

Jump to

Keyboard shortcuts

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