logs

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Custom

func Custom(tag, format string, v ...interface{})

func Debug

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

Debug 适配旧的logs打印

func Debugx

func Debugx() *zerolog.Event

func Error

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

func Errorx

func Errorx() *zerolog.Event

func Fatal

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

Fatal 打印Fatal信息 (程序终止)

func Fatalx

func Fatalx() *zerolog.Event

Fatalx Fatal消息打印 (程序终止)

func Info

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

func Infox

func Infox() *zerolog.Event

func Init

func Init(level, pathname string, interval int)

func Panic

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

Panic 打印Panic信息 (程序不终止)

func Panicx

func Panicx() *zerolog.Event

Panicx Panic消息打印 (程序不会终止)

func Warn

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

func Warnx

func Warnx() *zerolog.Event

Types

type Loggerx

type Loggerx struct {
	zerolog.Logger
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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