Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

dvelitchkov/ech0

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ech0

Ech0 (pronounced "echo zero") is a logging adapter for echo.Logger that uses github.com/rs/zerolog as the logging backend instead of the default github.com/labstack/gommon/log

Why?

  1. I like Echo.
  2. I like zerolog.
  3. I wanted to have one logging backend in my Echo apps.

Installing

go get -u github.com/dvelitchkov/ech0

Benchmarks

goos: darwin
goarch: amd64
pkg: github.com/dvelitchkov/ech0
BenchmarkZeroFormat-8     	 1000000	      1915 ns/op	     533 B/op	       3 allocs/op
BenchmarkZeroJSON-8       	 1000000	      2249 ns/op	    1032 B/op	       3 allocs/op
BenchmarkZero-8           	 1000000	      1893 ns/op	     533 B/op	       3 allocs/op
BenchmarkGommonFormat-8   	 1000000	      2203 ns/op	     256 B/op	      11 allocs/op
BenchmarkGommonJSON-8     	  500000	      2695 ns/op	     472 B/op	      14 allocs/op
BenchmarkGommon-8         	 1000000	      2136 ns/op	     256 B/op	      11 allocs/op
PASS
ok  	github.com/dvelitchkov/ech0	11.903s

About

A zerolog adaptor for Labstack's Echo framework

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.