From 906ce9519c962fb2af2f3ba34f58d6ab3e585feb Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 26 Oct 2020 16:08:52 +0800 Subject: [PATCH] 1 --- syslog.go | 4 +++- f5types.go => types.go | 0 2 files changed, 3 insertions(+), 1 deletion(-) rename f5types.go => types.go (100%) diff --git a/syslog.go b/syslog.go index 8a85512..87065e8 100644 --- a/syslog.go +++ b/syslog.go @@ -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) } diff --git a/f5types.go b/types.go similarity index 100% rename from f5types.go rename to types.go