All Projects → neko-neko → Echo Logrus

neko-neko / Echo Logrus

Licence: mit
echo-logrus is a middleware that provides logrus logger support for echo.

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Echo Logrus

Echo
High performance, minimalist Go web framework
Stars: ✭ 21,297 (+78777.78%)
Mutual labels:  echo, middleware
Echo Swagger
echo middleware to automatically generate RESTful API documentation with Swagger 2.0.
Stars: ✭ 314 (+1062.96%)
Mutual labels:  echo, middleware
Go Http Metrics
Go modular http middleware to measure HTTP requests independent of metrics backend (with Prometheus and OpenCensus as backend implementations) and http framework/library
Stars: ✭ 128 (+374.07%)
Mutual labels:  echo, middleware
Echo Web
Go web framework Echo example. 在线演示☞迁移ing❌
Stars: ✭ 409 (+1414.81%)
Mutual labels:  echo, middleware
Carter
Carter is framework that is a thin layer of extension methods and functionality over ASP.NET Core allowing code to be more explicit and most importantly more enjoyable.
Stars: ✭ 875 (+3140.74%)
Mutual labels:  middleware
Logger
HTTP middleware for Go that logs web requests to an io.Writer.
Stars: ✭ 24 (-11.11%)
Mutual labels:  middleware
Django Compression Middleware
Django middleware to compress responses using several algorithms.
Stars: ✭ 23 (-14.81%)
Mutual labels:  middleware
Reitit
A fast data-driven router for Clojure/Script
Stars: ✭ 892 (+3203.7%)
Mutual labels:  middleware
Go Bootstrap
Easy way to bootstrap a web server in Go (Routing|Middleware|Https)
Stars: ✭ 27 (+0%)
Mutual labels:  middleware
Grpc Tools
A suite of gRPC debugging tools. Like Fiddler/Charles but for gRPC.
Stars: ✭ 881 (+3162.96%)
Mutual labels:  middleware
Fascia
Stars: ✭ 12 (-55.56%)
Mutual labels:  echo
Cookie Session
Simple cookie-based session middleware
Stars: ✭ 928 (+3337.04%)
Mutual labels:  middleware
Middlewares
💥 Middlewares / Relay / PSR-7 support to Nette Framework (@nette)
Stars: ✭ 13 (-51.85%)
Mutual labels:  middleware
Kona
a node.js service framework built on koa.js (generators)
Stars: ✭ 23 (-14.81%)
Mutual labels:  middleware
Gentleman
Full-featured, plugin-driven, extensible HTTP client toolkit for Go
Stars: ✭ 886 (+3181.48%)
Mutual labels:  middleware
Honeybadger Node
A node.js notifier for honeybadger.io
Stars: ✭ 19 (-29.63%)
Mutual labels:  middleware
Outputcache
Cache api responses using Redis, Memcached or any cache provider for NodeJS
Stars: ✭ 9 (-66.67%)
Mutual labels:  middleware
Blazar
Pre-Render Pages on the Fly in Laravel
Stars: ✭ 14 (-48.15%)
Mutual labels:  middleware
Maintenance
Site maintenance SEO PSR-15 middleware
Stars: ✭ 8 (-70.37%)
Mutual labels:  middleware
Wrench
CakePHP 3 Maintenance Mode plugin
Stars: ✭ 26 (-3.7%)
Mutual labels:  middleware

echo-logrus

Build Status Go Report Card License

Overview

Middleware echo-logrus is a logrus logger support for Echo.
This middleware is working on Echo v4.

Getting Started

For dep users

When your project top dir run this.

$ dep ensure -add github.com/neko-neko/echo-logrus

Modules users

$ go get github.com/neko-neko/echo-logrus/v2

Example

package main

import (
	"os"
	"time"

	"github.com/sirupsen/logrus"
	"github.com/labstack/echo/v4"
	echoLog "github.com/labstack/gommon/log"
	"github.com/neko-neko/echo-logrus/v2"
	"github.com/neko-neko/echo-logrus/v2/log"
)

func main() {
	e := echo.New()

	// Logger
	log.Logger().SetOutput(os.Stdout)
	log.Logger().SetLevel(echoLog.INFO)
	log.Logger().SetFormatter(&logrus.JSONFormatter{
		TimestampFormat: time.RFC3339,
	})
	e.Logger = log.Logger()
	e.Use(middleware.Logger())
	log.Info("Logger enabled!!")

	e.Logger.Fatal(e.Start(":1323"))
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].