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

Method Warn

sugar.go:160–162  ·  view source on GitHub ↗

Warn logs the provided arguments at [WarnLevel]. Spaces are added between arguments when neither is a string.

(args ...interface{})

Source from the content-addressed store, hash-verified

158// Warn logs the provided arguments at [WarnLevel].
159// Spaces are added between arguments when neither is a string.
160func (s *SugaredLogger) Warn(args ...interface{}) {
161 s.log(WarnLevel, "", args, nil)
162}
163
164// Error logs the provided arguments at [ErrorLevel].
165// Spaces are added between arguments when neither is a string.

Callers

nothing calls this directly

Calls 1

logMethod · 0.95

Tested by

no test coverage detected