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)
| 219 | // is enabled. It's a completely optional optimization; in high-performance |
| 220 | // applications, Check can help avoid allocating a slice to hold fields. |
| 221 | func (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. |