Skip to content

Echo middleware to log using logrus pkg

License

Notifications You must be signed in to change notification settings

ChiliLabs/echo-logrus

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

echo-logrus

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

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())