klog

package
v1.0.36 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LevelInfo uint = iota
	LevelError
	LevelWarning
	LevelDebug
)
View Source
const (
	PrefixInfo    = "INF: "
	PrefixError   = "ERR: "
	PrefixWarning = "WRN: "
	PrefixDebug   = "DBG: "
	PrefixFatal   = "ERR: "
	PrefixPanic   = "PNC: "
)

Variables

View Source
var DefaultLogger = &Logger{
	Level:  LevelError,
	Output: os.Stdout,
}

Functions

func Debug

func Debug(v ...interface{})

func Debugf

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

func Debugln

func Debugln(v ...interface{})

func Fatal

func Fatal(v ...interface{})

func Fatalf

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

func Fatalln

func Fatalln(v ...interface{})

func Panic

func Panic(v ...interface{})

func Panicf

func Panicf(format string, v ...interface{})

func Panicln

func Panicln(v ...interface{})

func Print

func Print(v ...interface{})

func Printf

func Printf(format string, v ...interface{})

func Println

func Println(v ...interface{})

func Warn

func Warn(v ...interface{})

func Warnf

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

func Warnln

func Warnln(v ...interface{})

Types

type Logger

type Logger struct {
	Level  uint
	Output io.Writer
}

Jump to

Keyboard shortcuts

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