ErrorWrap logs the given entry with the error message annotated by the given message
(err error, msg string)
| 128 | |
| 129 | // ErrorWrap logs the given entry with the error message annotated by the given message |
| 130 | func (e Entry) ErrorWrap(err error, msg string) { |
| 131 | m := fmt.Sprintf("%s: %v", msg, err) |
| 132 | |
| 133 | e.Error(m) |
| 134 | } |
| 135 | |
| 136 | func (e Entry) formatJSON(level, msg string) []byte { |
| 137 | data := make(Fields, len(e.Fields)+4) |