entry

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry interface {
	SetLogger(fct func() *logrus.Logger) Entry
	SetLevel(lvl loglvl.Level) Entry
	SetMessageOnly(flag bool) Entry
	SetEntryContext(etime time.Time, stack uint64, caller, file string, line uint64, msg string) Entry
	SetGinContext(ctx *ginsdk.Context) Entry

	DataSet(data interface{}) Entry
	Check(lvlNoErr loglvl.Level) bool
	Log()

	FieldAdd(key string, val interface{}) Entry
	FieldMerge(fields logfld.Fields) Entry
	FieldSet(fields logfld.Fields) Entry
	FieldClean(keys ...string) Entry

	ErrorClean() Entry
	ErrorSet(err []error) Entry
	ErrorAdd(cleanNil bool, err ...error) Entry
}

func New

func New(lvl loglvl.Level) Entry

Jump to

Keyboard shortcuts

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