echologrus

package
v0.0.0-...-b5dcede Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger *logrus.Logger

Logger ...

Functions

func Hook

func Hook() echo.MiddlewareFunc

Hook is a function to process middleware.

Types

type Logrus

type Logrus struct {
	*logrus.Logger
}

Logrus : implement Logger

func GetEchoLogger

func GetEchoLogger() Logrus

GetEchoLogger for e.Logger

func (Logrus) Debug

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

Debug string log

func (Logrus) Debugj

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

Debugj debug json log

func (Logrus) Error

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

Error string log

func (Logrus) Errorj

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

Errorj error json log

func (Logrus) Fatal

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

Fatal string log

func (Logrus) Fatalj

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

Fatalj fatal json log

func (Logrus) Info

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

Info string log

func (Logrus) Infoj

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

Infoj info json log

func (Logrus) Level

func (l Logrus) Level() log.Lvl

Level returns logger level

func (Logrus) Output

func (l Logrus) Output() io.Writer

Output logger output func

func (Logrus) Panic

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

Panic string log

func (Logrus) Panicj

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

Panicj panic json log

func (Logrus) Prefix

func (l Logrus) Prefix() string

Prefix It's controlled by Logger

func (Logrus) Print

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

Print string log

func (Logrus) Printj

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

Printj print json log

func (Logrus) SetHeader

func (l Logrus) SetHeader(_ string)

SetHeader is a stub to satisfy interface It's controlled by Logger

func (Logrus) SetLevel

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

SetLevel set level to logger from given log.Lvl

func (Logrus) SetOutput

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

SetOutput change output, default os.Stdout

func (Logrus) SetPrefix

func (l Logrus) SetPrefix(s string)

SetPrefix It's controlled by Logger

func (Logrus) Warn

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

Warn string log

func (Logrus) Warnj

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

Warnj warning json log

Jump to

Keyboard shortcuts

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