From 22f3cd37ff61e2c1fb32dc410e51bdee4473c2d8 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Tue, 31 Mar 2015 12:35:53 +0900 Subject: [PATCH] colorful logger on windows --- middleware/logger.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/middleware/logger.go b/middleware/logger.go index e656ae1d..be6600df 100644 --- a/middleware/logger.go +++ b/middleware/logger.go @@ -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)