forked from p93542168/wheat-cache
feat(middle-msg): updatae logx
This commit is contained in:
parent
2e04517066
commit
329513bd98
|
@ -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...),
|
||||||
|
|
Loading…
Reference in New Issue