WithError creates an entry from the standard logger and adds an error to it, using the value defined in ErrorKey as key.
(err error)
| 235 | |
| 236 | // WithError creates an entry from the standard logger and adds an error to it, using the value defined in ErrorKey as key. |
| 237 | func WithError(err error) *Entry { |
| 238 | return WithField(logrus.ErrorKey, err) |
| 239 | } |
| 240 | |
| 241 | // WithField creates an entry from the standard logger and adds a field to |
| 242 | // it. If you want multiple fields, use `WithFields`. |