Fields adds fields to the Logger.
(fs ...Field)
| 60 | |
| 61 | // Fields adds fields to the Logger. |
| 62 | func Fields(fs ...Field) Option { |
| 63 | return optionFunc(func(log *Logger) { |
| 64 | log.core = log.core.With(fs) |
| 65 | }) |
| 66 | } |
| 67 | |
| 68 | // ErrorOutput sets the destination for errors generated by the Logger. Note |
| 69 | // that this option only affects internal errors; for sample code that sends |