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

Package echologrus

v0.0.0-...-64eebe8
Latest Go to latest

The latest major version is .

Published: Feb 11, 2020 | License: MIT | Module: github.com/yurykabanov/echo-logrus

Index

func Middleware

func Middleware(logger *logrus.Logger, opts ...Option) echo.MiddlewareFunc

type LoggerAdapter

type LoggerAdapter struct {
	*logrus.Logger
}

func NewAdapter

func NewAdapter(logger *logrus.Logger) *LoggerAdapter

func (LoggerAdapter) Debugj

func (adapter LoggerAdapter) Debugj(j log.JSON)

func (LoggerAdapter) Errorj

func (adapter LoggerAdapter) Errorj(j log.JSON)

func (LoggerAdapter) Fatalj

func (adapter LoggerAdapter) Fatalj(j log.JSON)

func (LoggerAdapter) Infoj

func (adapter LoggerAdapter) Infoj(j log.JSON)

func (LoggerAdapter) Level

func (adapter LoggerAdapter) Level() log.Lvl

func (LoggerAdapter) Output

func (adapter LoggerAdapter) Output() io.Writer

func (LoggerAdapter) Panicj

func (adapter LoggerAdapter) Panicj(j log.JSON)

func (LoggerAdapter) Prefix

func (adapter LoggerAdapter) Prefix() string

Log format is completely determined by logrus

func (LoggerAdapter) Printj

func (adapter LoggerAdapter) Printj(j log.JSON)

func (LoggerAdapter) SetHeader

func (adapter LoggerAdapter) SetHeader(string)

Log format is completely determined by logrus

func (LoggerAdapter) SetLevel

func (adapter LoggerAdapter) SetLevel(log.Lvl)

Ignore level as Logger shouldn't be configured by echo.Echo anyway

func (LoggerAdapter) SetPrefix

func (adapter LoggerAdapter) SetPrefix(p string)

Log format is completely determined by logrus

func (LoggerAdapter) Warnj

func (adapter LoggerAdapter) Warnj(j log.JSON)

type Option

type Option func(*config)

func WithSkipper

func WithSkipper(skipper middleware.Skipper) Option

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