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

Method Debug

logger.go:237–241  ·  view source on GitHub ↗

Debug logs a message at DebugLevel. 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

235// Debug logs a message at DebugLevel. The message includes any fields passed
236// at the log site, as well as any fields accumulated on the logger.
237func (log *Logger) Debug(msg string, fields ...Field) {
238 if ce := log.check(DebugLevel, msg); ce != nil {
239 ce.Write(fields...)
240 }
241}
242
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.

Callers 15

TestTestLoggerFunction · 0.95
TestConfigFunction · 0.45
TestIncreaseLevelFunction · 0.45
TestLoggerReplaceCoreFunction · 0.45
TestLoggerHooksFunction · 0.45
TestNopLoggerFunction · 0.45
ExampleObjectsFunction · 0.45

Calls 2

checkMethod · 0.95
WriteMethod · 0.65

Tested by 15

TestTestLoggerFunction · 0.76
TestConfigFunction · 0.36
TestIncreaseLevelFunction · 0.36
TestLoggerReplaceCoreFunction · 0.36
TestLoggerHooksFunction · 0.36
TestNopLoggerFunction · 0.36
ExampleObjectsFunction · 0.36