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)