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

Method Infof

sugar.go:203–205  ·  view source on GitHub ↗

Infof formats the message according to the format specifier and logs it at [InfoLevel].

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

Source from the content-addressed store, hash-verified

201// Infof formats the message according to the format specifier
202// and logs it at [InfoLevel].
203func (s *SugaredLogger) Infof(template string, args ...interface{}) {
204 s.log(InfoLevel, template, args, nil)
205}
206
207// Warnf formats the message according to the format specifier
208// and logs it at [WarnLevel].

Callers 6

Example_presetsFunction · 0.45
BenchmarkWithoutFieldsFunction · 0.45

Calls 1

logMethod · 0.95

Tested by 6

Example_presetsFunction · 0.36
BenchmarkWithoutFieldsFunction · 0.36