logrus

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: MIT Imports: 8 Imported by: 0

README

logrus

日志使用

日志输出格式

logrus.Debug("Useful debugging information.")
logrus.Info("Something noteworthy happened!")
logrus.Warn("You should probably take a look at this.")
logrus.Error("Something failed but I'm not quitting.")
logrus.Fatal("Bye.")         //log之后会调用os.Exit(1)
logrus.Panic("I'm bailing.") //log之后会panic()

日志输出级别

级别参考

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDingHook

func NewDingHook(url, app string, thresholdLevel logrus.Level) *dingHook

func NewLogs

func NewLogs() *logrus.Logger

NewLogs 级别

Types

This section is empty.

Jump to

Keyboard shortcuts

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