Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 473 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 473 Bytes

echo-logrus

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

v3.0 tag supports v3. v4.0 tag supports v4.

Install

go get -u github.com/plutov/echo-logrus

Usage

import package

echologrus "github.com/plutov/echo-logrus"

define new logrus

echologrus.Logger = logrus.New()
e.Logger = echologrus.GetEchoLogger()
e.Use(echologrus.Hook())