logger

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...any)

Debug 日志

func Debugf

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

Debugf 日志

func Error

func Error(args ...any)

Error 日志

func Errorf

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

Errorf 日志

func Fatal

func Fatal(args ...any)

Fatal 日志

func Fatalf

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

Fatalf 日志

func Info

func Info(args ...any)

Info 日志

func Infof

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

Infof 日志

func Init

func Init(level logrus.Level, formatterOpt ...logrus.Formatter)

Init 初始化,默认不需要调用,除非需要指定配置

func Instance

func Instance() (instance *logrus.Logger)

Instance Logrus实例

func Panic

func Panic(args ...any)

Panic 日志

func Panicf

func Panicf(format string, args ...any)

Panicf 日志

func SetLevel

func SetLevel(level logrus.Level)

SetLevel 设置日志级别

func Warn

func Warn(args ...any)

Warn 日志

func Warnf

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

Warnf 日志

Types

This section is empty.

Jump to

Keyboard shortcuts

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