ulogs

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogLevelTrace = iota
	LogLevelDebug
	LogLevelInfo
	LogLevelWarn
	LogLevelError
	LogLevelFatal
)

Variables

Functions

func CheckErrf

func CheckErrf(err error, format string, a ...any)

CheckErrf 检查错误

func Checkerr

func Checkerr(err error, i ...interface{})

Checkerr 检查错误

func Debug

func Debug(i ...any)

Debug 用于记录调试信息

func Debugf

func Debugf(format string, a ...any)

Debugf noinspection all

func DieCheckErrf

func DieCheckErrf(err error, format string, a ...any)

func DieCheckerr

func DieCheckerr(err error, i ...any)

DieCheckerr 检查错误,打印并输出错误信息

func Error

func Error(i ...interface{})

Error 用于记录错误信息

func ErrorReturn

func ErrorReturn(i ...interface{}) bool

func Errorf

func Errorf(format string, a ...any)

func Fatal

func Fatal(i ...interface{})

Fatal 用于记录致命错误信息

func Fatalf

func Fatalf(format string, a ...any)

noinspection all

func Info

func Info(i ...interface{})

Info 用于记录信息

func Infof

func Infof(format string, a ...any)

noinspection all

func Log

func Log(i ...interface{})

Log 打印正确日志,Info的别名 Deprecated: 弃用,请使用 Info

func Pfunc

func Pfunc(a ...interface{})

func Recover

func Recover()

Recover 捕获系统异常

func ReturnCheckerr

func ReturnCheckerr(err error, i ...interface{}) bool

ReturnCheckerr 检查错误,有异常就返回false

func Trace

func Trace(i ...any)

func Tracef

func Tracef(format string, a ...any)

noinspection all

func Warn

func Warn(i ...interface{})

Warn 用于记录警告信息

func Warnf

func Warnf(format string, a ...any)

noinspection all

Types

This section is empty.

Jump to

Keyboard shortcuts

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