With returns a new contextual logger with keyvals prepended to those passed to calls to Log. If logger is also a contextual logger created by With, WithPrefix, or WithSuffix, keyvals is appended to the existing context. The returned Logger replaces all value elements (odd indexes) containing a Valu
(logger Logger, keyvals ...interface{})
| 22 | // The returned Logger replaces all value elements (odd indexes) containing a |
| 23 | // Valuer with their generated value for each call to its Log method. |
| 24 | func With(logger Logger, keyvals ...interface{}) Logger { |
| 25 | return log.With(logger, keyvals...) |
| 26 | } |
| 27 | |
| 28 | // WithPrefix returns a new contextual logger with keyvals prepended to those |
| 29 | // passed to calls to Log. If logger is also a contextual logger created by |
searching dependent graphs…