log

package
v5.2.0-alpha Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CtxKeyApiMethod   = "api_method"
	CtxKeyApiParams   = "api_params"
	CtxKeyApiReqId    = "api_reqid"
	CtxKeyBlockHash   = "block_hash"
	CtxKeyBlockNumber = "block_num"
	CtxKeyConn        = "conn"
	CtxKeyDuration    = "duration"
	CtxKeyError       = "err"
	CtxKeyUniqId      = "uuid"
	CtxKeyUserId      = "user_id"
)
View Source
const DebugLevel = logrus.DebugLevel
View Source
const ErrorLevel = logrus.ErrorLevel
View Source
const FatalLevel = logrus.FatalLevel
View Source
const InfoLevel = logrus.InfoLevel
View Source
const TraceLevel = logrus.TraceLevel

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

func Debugf

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

func Debugx

func Debugx(ctx context.Context, args ...interface{})

func Debugxf

func Debugxf(ctx context.Context, format string, args ...interface{})

func Error

func Error(args ...interface{})

func Errorf

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

func Errorx

func Errorx(ctx context.Context, args ...interface{})

func Errorxf

func Errorxf(ctx context.Context, format string, args ...interface{})

func Fatal

func Fatal(args ...interface{})

func Fatalf

func Fatalf(format string, args ...interface{})

func Fatalx

func Fatalx(ctx context.Context, args ...interface{})

func Info

func Info(args ...interface{})

func Infof

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

func Infox

func Infox(ctx context.Context, args ...interface{})

func Infoxf

func Infoxf(ctx context.Context, format string, args ...interface{})

func Init

func Init() error

func IsLevelEnabled

func IsLevelEnabled(lvl Level) bool

func SetLevel

func SetLevel(lvl Level)

func SetOutput

func SetOutput(out io.Writer)

func Trace

func Trace(args ...interface{})

func Tracef

func Tracef(format string, args ...interface{})

func Tracex

func Tracex(ctx context.Context, args ...interface{})

func Tracexf

func Tracexf(ctx context.Context, format string, args ...interface{})

func Warn

func Warn(args ...interface{})

func Warnf

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

func Warnx

func Warnx(ctx context.Context, args ...interface{})

func Warnxf

func Warnxf(ctx context.Context, format string, args ...interface{})

Types

type Entry

type Entry = logrus.Entry

func WithError

func WithError(err error) *Entry

func WithField

func WithField(field string, value interface{}) *Entry

func WithFieldsFromContext

func WithFieldsFromContext(ctx context.Context) *Entry

type Level

type Level = logrus.Level

Jump to

Keyboard shortcuts

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