log

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(v ...any)

Debug 调试日志输出

func Debugf

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

Debugf 调试日志输出

func Error

func Error(v ...any)

Error 错误信息

func Errorf

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

Errorf 格式化输出

func Fatal

func Fatal(v ...any)

Fatal 严重错误

func Fatalf

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

func Info

func Info(v ...any)

func Infof

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

Infof info级别消息格式化输出

func Warn

func Warn(v ...any)

Warn 错误信息

func Warnf

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

Warnf 格式化输出

Types

type Level

type Level int

Level log级别

const (
	TraceLevel Level = iota
	DebugLevel
	WarnLevel
	InfoLevel
	ErrorLevel
	FatalLevel
)

Jump to

Keyboard shortcuts

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