With adds a variadic number of fields to the logging context. It accepts a mix of strongly-typed zapcore.Field objects and loosely-typed key-value pairs.
(args ...interface{})
| 169 | // With adds a variadic number of fields to the logging context. |
| 170 | // It accepts a mix of strongly-typed zapcore.Field objects and loosely-typed key-value pairs. |
| 171 | func With(args ...interface{}) *zap.SugaredLogger { |
| 172 | return Default().With(args...) |
| 173 | } |
| 174 | |
| 175 | // WithTraceContext returns a logger with trace_id and span_id fields extracted from the context. |
| 176 | // If the context doesn't contain a valid span, returns the default logger. |
no test coverage detected