Msgf sends the event with formatted msg added as the message field if not empty. NOTICE: once this method is called, the *Event should be disposed. Calling Msgf twice can have unexpected result.
(format string, v ...interface{})
| 134 | // NOTICE: once this method is called, the *Event should be disposed. |
| 135 | // Calling Msgf twice can have unexpected result. |
| 136 | func (e *Event) Msgf(format string, v ...interface{}) { |
| 137 | if e == nil { |
| 138 | return |
| 139 | } |
| 140 | e.msg(fmt.Sprintf(format, v...)) |
| 141 | } |
| 142 | |
| 143 | func (e *Event) MsgFunc(createMsg func() string) { |
| 144 | if e == nil { |