logger

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func AddHook added in v0.3.0

func AddHook(hook logrus.Hook)

func Debug

func Debug(args ...interface{})

func Error

func Error(args ...interface{})

func Fatal

func Fatal(args ...interface{})

func GetEntry

func GetEntry() *logrus.Entry

func Info

func Info(args ...interface{})

func Init

func Init() error

func Log

func Log(level Level, v ...interface{})

func Logf

func Logf(level Level, format string, v ...interface{})

func Panic

func Panic(args ...interface{})

func Trace

func Trace(args ...interface{})

func V

func V(lv Level) bool

func Warn

func Warn(args ...interface{})

Types

type Level

type Level = logrus.Level

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func Field

func Field(key string, value interface{}) *Logger

func Fields

func Fields(keysAndValues ...interface{}) *Logger

func (*Logger) Log

func (l *Logger) Log(level Level, v ...interface{})

func (*Logger) Logf

func (l *Logger) Logf(level Level, format string, v ...interface{})

type Logrus

type Logrus struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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