log

package
v0.0.0-...-6ed6422 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Branch string = "default branch"
	Commit string = "default commit"
)
View Source
var Logger *logrus.Logger = logrus.New()

Functions

func New

func New() *logrus.Entry

func NewWithContext

func NewWithContext(ctx context.Context) *logrus.Entry

Types

type Logrus

type Logrus struct {
	*logrus.Logger
}

func GetEchoLogger

func GetEchoLogger() Logrus

GetEchoLogger for e.Logger

func (Logrus) Debug

func (l Logrus) Debug(i ...interface{})

func (Logrus) Debugj

func (l Logrus) Debugj(j log.JSON)

func (Logrus) Error

func (l Logrus) Error(i ...interface{})

func (Logrus) Errorj

func (l Logrus) Errorj(j log.JSON)

func (Logrus) Fatal

func (l Logrus) Fatal(i ...interface{})

func (Logrus) Fatalj

func (l Logrus) Fatalj(j log.JSON)

func (Logrus) Info

func (l Logrus) Info(i ...interface{})

func (Logrus) Infoj

func (l Logrus) Infoj(j log.JSON)

func (Logrus) Level

func (l Logrus) Level() log.Lvl

func (Logrus) Output

func (l Logrus) Output() io.Writer

func (Logrus) Panic

func (l Logrus) Panic(i ...interface{})

func (Logrus) Panicj

func (l Logrus) Panicj(j log.JSON)

func (Logrus) Prefix

func (l Logrus) Prefix() string

func (Logrus) Print

func (l Logrus) Print(i ...interface{})

func (Logrus) Printj

func (l Logrus) Printj(j log.JSON)

func (Logrus) SetHeader

func (l Logrus) SetHeader(_ string)

func (Logrus) SetLevel

func (l Logrus) SetLevel(lvl log.Lvl)

func (Logrus) SetOutput

func (l Logrus) SetOutput(w io.Writer)

func (Logrus) SetPrefix

func (l Logrus) SetPrefix(s string)

func (Logrus) Warn

func (l Logrus) Warn(i ...interface{})

func (Logrus) Warnj

func (l Logrus) Warnj(j log.JSON)

func (Logrus) WithRequestID

func (l Logrus) WithRequestID(requestID string)

func (Logrus) WithUserID

func (l Logrus) WithUserID(userID int)

Jump to

Keyboard shortcuts

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