mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 20:40:54 +00:00
window console can't output colorful
This commit is contained in:
parent
83fe43f331
commit
88816348b9
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user