feat(middle-msg): updatae logx

This commit is contained in:
Sodesnei 2021-10-09 21:49:55 +08:00
parent 2e04517066
commit 329513bd98
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ func (l *upLogger) Print(level string, format string, msg ...interface{}) {
Print(level, format, msg...) Print(level, format, msg...)
eventMiddle := event.NewEvent(middleMsg.EventNameLog) eventMiddle := event.NewEvent(middleMsg.EventNameLog)
eventMiddle.SetValue(middleMsg.EventKeyLog, middleMsg.LogContext{ eventMiddle.SetValue(middleMsg.MiddleMsgKey, middleMsg.LogContext{
Level: level, Level: level,
Data: time.Now(), Data: time.Now(),
Msg: fmt.Sprintf(format, msg...), Msg: fmt.Sprintf(format, msg...),