ulog

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OFF = iota
	FATAL
	ERROR
	WARN
	INFO
	DEBUG
	ALL_LEVEL
	UNEXPECT
)

Variables

This section is empty.

Functions

func Debug

func Debug(v ...interface{})

func Debug2

func Debug2(skip int, v ...interface{})

func Empty

func Empty() bool

func Error

func Error(v ...interface{})

func Error2

func Error2(skip int, v ...interface{})

func Fatal

func Fatal(v ...interface{})

func Fatal2

func Fatal2(skip int, v ...interface{})

func Info

func Info(v ...interface{})

func Info2

func Info2(skip int, v ...interface{})

func PrintLog

func PrintLog(level LEVEL, format string, v ...any)

func SetConsole

func SetConsole(b bool)

func SetLevel

func SetLevel(level LEVEL)

func SetLogDir

func SetLogDir(dir string, size int64) bool

func SetUpdate

func SetUpdate()

func Trace

func Trace(v ...interface{})

func Trace2

func Trace2(skip int, v ...interface{})

func WaitLogFinish

func WaitLogFinish()

func Warn

func Warn(v ...interface{})

func Warn2

func Warn2(skip int, v ...interface{})

Types

type LEVEL

type LEVEL int32

func GetLevel

func GetLevel(level string) LEVEL

type PrintLoger

type PrintLoger struct {
}

func (*PrintLoger) PrintLog

func (p *PrintLoger) PrintLog(level string, format string, v ...any)

Jump to

Keyboard shortcuts

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