Merge branch 'mattn-colorful-logger-on-windows' into develop

This commit is contained in:
Javier Provecho Fernandez 2015-03-08 14:23:09 +01:00
commit 38eb9676dc

View File

@ -5,8 +5,8 @@
package gin
import (
"github.com/mattn/go-colorable"
"log"
"os"
"time"
)
@ -38,7 +38,7 @@ func ErrorLoggerT(typ uint32) HandlerFunc {
}
func Logger() HandlerFunc {
stdlogger := log.New(os.Stdout, "", 0)
stdlogger := log.New(colorable.NewColorableStdout(), "", 0)
//errlogger := log.New(os.Stderr, "", 0)
return func(c *Context) {