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

Method Warn

logger.go:253–257  ·  view source on GitHub ↗

Warn logs a message at WarnLevel. 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

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.
253func (log *Logger) Warn(msg string, fields ...Field) {
254 if ce := log.check(WarnLevel, msg); ce != nil {
255 ce.Write(fields...)
256 }
257}
258
259// Error logs a message at ErrorLevel. The message includes any fields passed
260// at the log site, as well as any fields accumulated on the logger.

Callers 15

TestTestLoggerFunction · 0.95
TestConfigFunction · 0.45
TestIncreaseLevelFunction · 0.45
TestLoggerReplaceCoreFunction · 0.45
TestLoggerIncreaseLevelFunction · 0.45

Calls 2

checkMethod · 0.95
WriteMethod · 0.65

Tested by 14

TestTestLoggerFunction · 0.76
TestConfigFunction · 0.36
TestIncreaseLevelFunction · 0.36
TestLoggerReplaceCoreFunction · 0.36
TestLoggerIncreaseLevelFunction · 0.36