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

Method Warnf

sugar.go:209–211  ·  view source on GitHub ↗

Warnf formats the message according to the format specifier and logs it at [WarnLevel].

(template string, args ...interface{})

Source from the content-addressed store, hash-verified

207// Warnf formats the message according to the format specifier
208// and logs it at [WarnLevel].
209func (s *SugaredLogger) Warnf(template string, args ...interface{}) {
210 s.log(WarnLevel, template, args, nil)
211}
212
213// Errorf formats the message according to the format specifier
214// and logs it at [ErrorLevel].

Callers 2

WarningfMethod · 0.80

Calls 1

logMethod · 0.95

Tested by 1