logger

package
v1.0.23 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEBUG int = iota
	INFO
	NOTICE
	WARN
	ERROR
	FATAL
	PANIC
)

Variables

View Source
var (
	Logger = New(log.New(os.Stderr, "", log.Lmsgprefix), DEBUG, "local", "asia/shanghai", datetime.LayoutDateTimeZoneT, nil)
)

Functions

func Debug

func Debug(message string, v ...interface{})

Debug 调试

func Error

func Error(message string, v ...interface{})

Error 错误

func Fatal

func Fatal(message string, v ...interface{})

Fatal 致命错误

func Info

func Info(message string, v ...interface{})

Info 信息

func New

func New(raw *log.Logger, level int, env string, timezone, timeFormat string, feishu map[string]string) *logger

New 初始化

func Notice added in v1.0.4

func Notice(message string, v ...interface{})

Notice 通知

func Panic

func Panic(message string, v ...interface{})

Panic 恐慌

func SetLevel

func SetLevel(level int)

SetLevel 等级

func Warn

func Warn(message string, v ...interface{})

Warn 警告

Types

This section is empty.

Jump to

Keyboard shortcuts

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