/echo-logrus

Echo middleware to log using logrus pkg

Primary LanguageGoMIT LicenseMIT

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