WithContext creates an entry from the standard logger and adds a context to it.
(ctx context.Context)
| 58 | |
| 59 | // WithContext creates an entry from the standard logger and adds a context to it. |
| 60 | func WithContext(ctx context.Context) *Entry { |
| 61 | return std.WithContext(ctx) |
| 62 | } |
| 63 | |
| 64 | // WithField creates an entry from the standard logger and adds a field to |
| 65 | // it. If you want multiple fields, use `WithFields`. |