浏览代码

Separated color and white

Signed-off-by: Vishal Rana <vr@labstack.com>
Vishal Rana 9 年之前
父节点
当前提交
431777a511
共有 1 个文件被更改,包括 1 次插入2 次删除
  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
 }