logrus

package
v1.0.1006 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry = logrus.Entry

Entry 别名

type Fields

type Fields = logrus.Fields

日志额外数据

type LogFunction

type LogFunction = logrus.LogFunction

日志方法

type Logrus

type Logrus struct {
	// 配置
	Config map[string]any
}

*

  • 日志 logrus 驱动 *
  • @create 2021-11-3
  • @author deatil

func New

func New() *Logrus

构造方法

func (*Logrus) Debug

func (this *Logrus) Debug(args ...any)

func (*Logrus) DebugFn

func (this *Logrus) DebugFn(fn LogFunction)

func (*Logrus) Debugf

func (this *Logrus) Debugf(template string, args ...any)

func (*Logrus) Debugln

func (this *Logrus) Debugln(args ...any)

func (*Logrus) Error

func (this *Logrus) Error(args ...any)

func (*Logrus) ErrorFn

func (this *Logrus) ErrorFn(fn LogFunction)

func (*Logrus) Errorf

func (this *Logrus) Errorf(template string, args ...any)

func (*Logrus) Errorln

func (this *Logrus) Errorln(args ...any)

func (*Logrus) Exit

func (this *Logrus) Exit(code int)

func (*Logrus) Fatal

func (this *Logrus) Fatal(args ...any)

func (*Logrus) FatalFn

func (this *Logrus) FatalFn(fn LogFunction)

func (*Logrus) Fatalf

func (this *Logrus) Fatalf(template string, args ...any)

func (*Logrus) Fatalln

func (this *Logrus) Fatalln(args ...any)

func (*Logrus) GetLevel

func (this *Logrus) GetLevel() logrus.Level

获取等级

func (*Logrus) Info

func (this *Logrus) Info(args ...any)

func (*Logrus) InfoFn

func (this *Logrus) InfoFn(fn LogFunction)

func (*Logrus) Infof

func (this *Logrus) Infof(template string, args ...any)

func (*Logrus) Infoln

func (this *Logrus) Infoln(args ...any)

func (*Logrus) Panic

func (this *Logrus) Panic(args ...any)

func (*Logrus) PanicFn

func (this *Logrus) PanicFn(fn LogFunction)

func (*Logrus) Panicf

func (this *Logrus) Panicf(template string, args ...any)

func (*Logrus) Panicln

func (this *Logrus) Panicln(args ...any)

func (*Logrus) PrintFn

func (this *Logrus) PrintFn(fn LogFunction)

func (*Logrus) Println

func (this *Logrus) Println(args ...any)

func (*Logrus) Trace

func (this *Logrus) Trace(args ...any)

func (*Logrus) TraceFn

func (this *Logrus) TraceFn(fn LogFunction)

func (*Logrus) Tracef

func (this *Logrus) Tracef(template string, args ...any)

func (*Logrus) Traceln

func (this *Logrus) Traceln(args ...any)

func (*Logrus) Warn

func (this *Logrus) Warn(args ...any)

func (*Logrus) WarnFn

func (this *Logrus) WarnFn(fn LogFunction)

func (*Logrus) Warnf

func (this *Logrus) Warnf(template string, args ...any)

func (*Logrus) Warning

func (this *Logrus) Warning(args ...any)

func (*Logrus) WarningFn

func (this *Logrus) WarningFn(fn LogFunction)

func (*Logrus) Warningf

func (this *Logrus) Warningf(template string, args ...any)

func (*Logrus) Warningln

func (this *Logrus) Warningln(args ...any)

func (*Logrus) Warnln

func (this *Logrus) Warnln(args ...any)

func (*Logrus) WithConfig

func (this *Logrus) WithConfig(config map[string]any)

设置配置

func (*Logrus) WithField

func (this *Logrus) WithField(key string, value any) any

设置自定义变量 *logrus.Entry

func (*Logrus) WithFields

func (this *Logrus) WithFields(fields map[string]any) any

批量设置自定义变量

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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