1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-26 08:01:29 +00:00

window console can't output colorful

This commit is contained in:
astaxie 2016-03-11 15:29:52 +08:00
parent 83fe43f331
commit 88816348b9

View File

@ -56,7 +56,7 @@ func NewConsole() Logger {
cw := &consoleWriter{ cw := &consoleWriter{
lg: newLogWriter(os.Stdout), lg: newLogWriter(os.Stdout),
Level: LevelDebug, Level: LevelDebug,
Colorful: true, Colorful: runtime.GOOS != "windows",
} }
return cw return cw
} }