This commit is contained in:
aozhiwei 2020-10-26 16:08:52 +08:00
parent 8d7bf727ef
commit 906ce9519c
2 changed files with 3 additions and 1 deletions

View File

@ -93,7 +93,9 @@ func (this *SysLog_) Debug(format string, args ...interface{}) {
func (this *SysLog_) addLog(category string, format string, args ...interface{}) {
p := &LogMsgNode{}
p.logMsg = time.Now().Format("2006-01-02 15:04:05") + category + " " + fmt.Sprintf(format, args...) + "\n"
p.logMsg = time.Now().Format("2006-01-02 15:04:05") +
category + " " +
fmt.Sprintf(format, args...) + "\n"
if this.debuging {
fmt.Print(p.logMsg)
}