log

package
v0.0.0-...-f702f57 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LevelError = iota
	LevelWarn
	LevelInfo
	LevelDebug
	LevelTrace
)

Variables

This section is empty.

Functions

func Debugf

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

func Errorf

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

func Fatalf

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

Fatalf logs the error and exits with code 1

func Infof

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

func SetLevel

func SetLevel(i int)

SetLevel sets the lowest level of logging. Fatal is always logged, and calls os.Exit(1) Levels are:

LevelError = 0 LevelWarn = 1 LevelInfo = 2 LevelDebug = 3 LevelTrace = 4

func Tracef

func Tracef(message string, args ...interface{})

func Warnf

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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