mirror of
https://github.com/labstack/echo.git
synced 2024-12-24 20:14:31 +02:00
Merge branch 'master' of https://github.com/labstack/echo
This commit is contained in:
commit
ccec2b8640
@ -6,9 +6,11 @@ import (
|
||||
|
||||
"github.com/labstack/echo"
|
||||
"github.com/labstack/gommon/color"
|
||||
"github.com/mattn/go-colorable"
|
||||
)
|
||||
|
||||
func Logger(h echo.HandlerFunc) echo.HandlerFunc {
|
||||
log.SetOutput(colorable.NewColorableStdout())
|
||||
return echo.HandlerFunc(func(c *echo.Context) {
|
||||
start := time.Now()
|
||||
h(c)
|
||||
|
Loading…
Reference in New Issue
Block a user