增加了printf输出当前时间

This commit is contained in:
jau1jz
2019-03-29 10:27:13 +08:00
parent 8e9a317326
commit 94f95e2bc4

View File

@@ -106,7 +106,7 @@ func (slf *LogModule) Printf(level uint, format string, v ...interface{}) {
if slf.openLevel == LEVER_DEBUG || slf.listenFun != nil {
strlog := fmt.Sprintf(format, v...)
if slf.openLevel == LEVER_DEBUG {
fmt.Println(LogPrefix[level], strlog)
fmt.Println(LogPrefix[level], time.Now().Format("2006/1/2 15:04:05"), strlog)
}
if slf.listenFun != nil {