With returns a Logger that prepends the given fields on every logged entry. It will append to any fields already in the Logger.
(fields ...Field)
| 129 | // |
| 130 | // It will append to any fields already in the Logger. |
| 131 | func (l Logger) With(fields ...Field) Logger { |
| 132 | l.fields = l.fields.append(fields) |
| 133 | return l |
| 134 | } |
| 135 | |
| 136 | // Named appends the name to the set names |
| 137 | // on the logger. |