Parcourir la source

Separated color and white

Signed-off-by: Vishal Rana <vr@labstack.com>
Vishal Rana il y a 9 ans
Parent
commit
431777a511
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1 2
      log/log.go

+ 1 - 2
log/log.go

@@ -13,7 +13,6 @@ import (
 
 	"strconv"
 
-	"github.com/mattn/go-colorable"
 	"github.com/mattn/go-isatty"
 	"github.com/valyala/fasttemplate"
 
@@ -65,7 +64,7 @@ func New(prefix string) (l *Logger) {
 		},
 	}
 	l.initLevels()
-	l.SetOutput(colorable.NewColorableStdout())
+	l.SetOutput(output())
 	return
 }