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

Method Check

logger.go:221–223  ·  view source on GitHub ↗

Check returns a CheckedEntry if logging a message at the specified level is enabled. It's a completely optional optimization; in high-performance applications, Check can help avoid allocating a slice to hold fields.

(lvl zapcore.Level, msg string)

Source from the content-addressed store, hash-verified

219// is enabled. It's a completely optional optimization; in high-performance
220// applications, Check can help avoid allocating a slice to hold fields.
221func (log *Logger) Check(lvl zapcore.Level, msg string) *zapcore.CheckedEntry {
222 return log.check(lvl, msg)
223}
224
225// Log logs a message at the specified level. The message includes any fields
226// passed at the log site, as well as any fields accumulated on the logger.

Callers

nothing calls this directly

Calls 1

checkMethod · 0.95

Tested by

no test coverage detected