WithError adds an error as single field (using the key defined in ErrorKey) to the Entry.
(err error)
| 41 | |
| 42 | // WithError adds an error as single field (using the key defined in ErrorKey) to the Entry. |
| 43 | func (entry *Entry) WithError(err error) *Entry { |
| 44 | return (*Entry)((*logrus.Entry)(entry).WithError(err)) |
| 45 | } |
| 46 | |
| 47 | // WithField add a single field to the Entry. |
| 48 | func (entry *Entry) WithField(key string, value interface{}) *Entry { |
no outgoing calls