logs

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NetworkTag = "network"
)

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 Error

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

func Fatal

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

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

func Info

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

func Init

func Init(level, pathname string, interval int)

func Panic

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

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

func Warn

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

Types

type Event

type Event struct {
	// contains filtered or unexported fields
}

func Debugx

func Debugx() *Event

func Errorx

func Errorx() *Event

func Fatalx

func Fatalx() *Event

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

func Infox

func Infox() *Event

func Panicx

func Panicx() *Event

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

func Warnx

func Warnx() *Event

func (*Event) Any

func (ev *Event) Any(key string, v any) *Event

func (*Event) Msg

func (ev *Event) Msg(msg string)

此方法会打印

func (*Event) Msgf

func (ev *Event) Msgf(format string, v ...interface{})

此方法会打印

func (*Event) OK

func (ev *Event) OK()

此方法会打印

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