echologrus

package module
v0.0.0-...-9232e27 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2018 License: MIT Imports: 6 Imported by: 0

README

echo-logrus

Middleware echo-logrus is a logrus logger support for echo.

Install it using dep:

dep ensure --add github.com/plutov/echo-logrus

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hook

func Hook(withRequest bool) echo.MiddlewareFunc

Hook is a function to process middleware.

Types

type Logger

type Logger struct {
	*logrus.Logger
}

Logger : implement logrus Logger

func (Logger) Debugj

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

func (Logger) Errorj

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

func (Logger) Fatalj

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

func (Logger) Infoj

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

func (Logger) Level

func (l Logger) Level() log.Lvl

func (Logger) Output

func (l Logger) Output() io.Writer

func (Logger) Panicj

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

func (Logger) Prefix

func (l Logger) Prefix() string

func (Logger) Printj

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

func (Logger) SetLevel

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

func (Logger) SetOutput

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

func (Logger) SetPrefix

func (l Logger) SetPrefix(s string)

func (Logger) Warnj

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

Jump to

Keyboard shortcuts

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