mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-04 06:54:45 +08:00
增加了printf输出当前时间
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user