WithError creates an entry from the standard logger and adds an error to it, using the value defined in ErrorKey as key.
(err error)
| 53 | |
| 54 | // WithError creates an entry from the standard logger and adds an error to it, using the value defined in ErrorKey as key. |
| 55 | func WithError(err error) *Entry { |
| 56 | return std.WithField(ErrorKey, err) |
| 57 | } |
| 58 | |
| 59 | // WithContext creates an entry from the standard logger and adds a context to it. |
| 60 | func WithContext(ctx context.Context) *Entry { |