1
This commit is contained in:
parent
8d7bf727ef
commit
906ce9519c
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user