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

Method Info

logger.go:245–249  ·  logger.go::Logger.Info

Info logs a message at InfoLevel. The message includes any fields passed at the log site, as well as any fields accumulated on the logger.

(msg string, fields ...Field)

Source from the content-addressed store, hash-verified

243// Info logs a message at InfoLevel. The message includes any fields passed
244// at the log site, as well as any fields accumulated on the logger.
245func (log *Logger) Info(msg string, fields ...Field) {
246 if ce := log.check(InfoLevel, msg); ce != nil {
247 ce.Write(fields...)
248 }
249}
250
251// Warn logs a message at WarnLevel. The message includes any fields passed
252// at the log site, as well as any fields accumulated on the logger.

Callers 15

TestConfigFunction · 0.45
TestReplaceGlobalsFunction · 0.45
TestGlobalsConcurrentUseFunction · 0.45
BenchmarkNoContextFunction · 0.45
BenchmarkBoolFieldFunction · 0.45
BenchmarkByteStringFieldFunction · 0.45
BenchmarkFloat64FieldFunction · 0.45
BenchmarkIntFieldFunction · 0.45
BenchmarkInt64FieldFunction · 0.45
BenchmarkStringFieldFunction · 0.45
BenchmarkStringerFieldFunction · 0.45

Calls 2

checkMethod · 0.95
WriteMethod · 0.65

Tested by 15

TestConfigFunction · 0.36
TestReplaceGlobalsFunction · 0.36
TestGlobalsConcurrentUseFunction · 0.36
BenchmarkNoContextFunction · 0.36
BenchmarkBoolFieldFunction · 0.36
BenchmarkByteStringFieldFunction · 0.36
BenchmarkFloat64FieldFunction · 0.36
BenchmarkIntFieldFunction · 0.36
BenchmarkInt64FieldFunction · 0.36
BenchmarkStringFieldFunction · 0.36
BenchmarkStringerFieldFunction · 0.36