logging

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(debug bool)

func SetLevel

func SetLevel(level Level)

func SetReportCaller

func SetReportCaller(status bool)

打印函数名字开关

Types

type IRFLogger

type IRFLogger = logrus.Logger

func GetLogger

func GetLogger() *IRFLogger

func NewLogger

func NewLogger(debug bool) *IRFLogger

type Level

type Level = logrus.Level
const (
	DebugLevel Level = logrus.DebugLevel
	InfoLevel  Level = logrus.InfoLevel
	WarnLevel  Level = logrus.WarnLevel
	ErrorLevel Level = logrus.ErrorLevel
	FatalLevel Level = logrus.FatalLevel
	PanicLevel Level = logrus.PanicLevel
	TraceLevel Level = logrus.TraceLevel
)

Jump to

Keyboard shortcuts

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