MCPcopy
hub / github.com/uber-go/zap / Warnw

Method Warnw

sugar.go:262–264  ·  view source on GitHub ↗

Warnw logs a message with some additional context. The variadic key-value pairs are treated as they are in With.

(msg string, keysAndValues ...interface{})

Source from the content-addressed store, hash-verified

260// Warnw logs a message with some additional context. The variadic key-value
261// pairs are treated as they are in With.
262func (s *SugaredLogger) Warnw(msg string, keysAndValues ...interface{}) {
263 s.log(WarnLevel, msg, nil, keysAndValues)
264}
265
266// Errorw logs a message with some additional context. The variadic key-value
267// pairs are treated as they are in With.

Callers 1

Calls 1

logMethod · 0.95

Tested by 1