Skip to content

Commit

Permalink
colorful logger on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn committed Mar 31, 2015
1 parent 01ff47d commit 22f3cd3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions middleware/logger.go
Expand Up @@ -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)
Expand Down

0 comments on commit 22f3cd3

Please sign in to comment.