WithField creates an entry from the standard logger and adds a field to it. If you want multiple fields, use `WithFields`. Note that it doesn't log until you call Debug, Print, Info, Warn, Fatal or Panic on the Entry it returns.
(key string, value interface{})
| 67 | // Note that it doesn't log until you call Debug, Print, Info, Warn, Fatal |
| 68 | // or Panic on the Entry it returns. |
| 69 | func WithField(key string, value interface{}) *Entry { |
| 70 | return std.WithField(key, value) |
| 71 | } |
| 72 | |
| 73 | // WithFields creates an entry from the standard logger and adds multiple |
| 74 | // fields to it. This is simply a helper for `WithField`, invoking it |