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 4, 2015
1 parent 3aa0e9c commit e769b5d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ package gin

import (
"log"
"os"
"time"

"github.com/mattn/go-colorable"
)

var (
Expand Down Expand Up @@ -38,7 +39,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) {
Expand Down

0 comments on commit e769b5d

Please sign in to comment.