Back to godoc.org
github.com/ChiliLabs/echo-logrus

Package echologrus

v1.0.1
Latest Go to latest

The latest major version is .

Published: Jan 3, 2020 | License: MIT | Module: github.com/ChiliLabs/echo-logrus

Index

Variables

var Logger *logrus.Logger

Logger ...

func Hook

func Hook() echo.MiddlewareFunc

Hook is a function to process middleware.

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier