From 94f95e2bc4bb7d95b1bf13a7255a3e2e3f739484 Mon Sep 17 00:00:00 2001 From: jau1jz <95550641@163.com> Date: Fri, 29 Mar 2019 10:27:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86printf=E8=BE=93?= =?UTF-8?q?=E5=87=BA=E5=BD=93=E5=89=8D=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sysmodule/LogModule.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysmodule/LogModule.go b/sysmodule/LogModule.go index 5ddb239..65a28ec 100644 --- a/sysmodule/LogModule.go +++ b/sysmodule/LogModule.go @@ -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 {