Commit d93f1120 authored by cloudaice's avatar cloudaice

fixed bug: in logs package check if platform is windows

parent 9384e870
......@@ -4,6 +4,7 @@ import (
"encoding/json"
"log"
"os"
"runtime"
)
type Brush func(string) string
......@@ -54,7 +55,11 @@ func (c *ConsoleWriter) WriteMsg(msg string, level int) error {
if level < c.Level {
return nil
}
if goos := runtime.GOOS; goos == "windows" {
c.lg.Println(msg)
} else {
c.lg.Println(colors[level](msg))
}
return nil
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment