log

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugf

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

func Errorf

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

func Infof

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

func PrintHex

func PrintHex(n uintptr)

func PrintStr

func PrintStr(s string)

func SetLevel

func SetLevel(l LogLevel) error

func Warnf

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

Types

type LogLevel

type LogLevel int8
const (
	LoglvlDebug LogLevel = iota
	LoglvlInfo
	LoglvlWarn
	LoglvlError
	LoglvlNone
)
var (
	Level LogLevel

	ErrInvalidLogLevel = fmt.Errorf("invalid log level")
)

Jump to

Keyboard shortcuts

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