log

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WarnLevel  = logrus.WarnLevel
	InfoLevel  = logrus.InfoLevel
	DebugLevel = logrus.DebugLevel
	ErrorLevel = logrus.ErrorLevel
	FatalLevel = logrus.FatalLevel
	PanicLevel = logrus.PanicLevel
)

Functions

func CheckErr

func CheckErr(level logrus.Level, err error)

func Debug

func Debug(messages ...interface{})

func Debugf

func Debugf(format string, messages ...interface{})

func Error

func Error(messages ...interface{})

func Errorf

func Errorf(format string, messages ...interface{})

func Fatal

func Fatal(messages ...interface{})

func Info

func Info(messages ...interface{})

func Infof

func Infof(format string, messages ...interface{})

func Log

func Log(level logrus.Level, messages ...interface{})

func SetFormatter

func SetFormatter(formatter logrus.Formatter)

func SetLevel

func SetLevel(level logrus.Level)

func Warn

func Warn(messages ...interface{})

func Warnf

func Warnf(format string, messages ...interface{})

func WithField

func WithField(key string, value interface{}) *logrus.Entry

func WithFields

func WithFields(fields logrus.Fields) *logrus.Entry

Types

type Level

type Level = logrus.Level

type TextFormatter

type TextFormatter = logrus.TextFormatter

Jump to

Keyboard shortcuts

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