Log logs a message at the specified level. The message includes any fields passed at the log site, as well as any fields accumulated on the logger. Any Fields that require evaluation (such as Objects) are evaluated upon invocation of Log.
(lvl zapcore.Level, msg string, fields ...Field)
| 227 | // Any Fields that require evaluation (such as Objects) are evaluated upon |
| 228 | // invocation of Log. |
| 229 | func (log *Logger) Log(lvl zapcore.Level, msg string, fields ...Field) { |
| 230 | if ce := log.check(lvl, msg); ce != nil { |
| 231 | ce.Write(fields...) |
| 232 | } |
| 233 | } |
| 234 | |
| 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. |