Error logs a message at ErrorLevel. The message includes any fields passed at the log site, as well as any fields accumulated on the logger.
(msg string, fields ...Field)
| 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. |
| 261 | func (log *Logger) Error(msg string, fields ...Field) { |
| 262 | if ce := log.check(ErrorLevel, msg); ce != nil { |
| 263 | ce.Write(fields...) |
| 264 | } |
| 265 | } |
| 266 | |
| 267 | // DPanic logs a message at DPanicLevel. The message includes any fields |
| 268 | // passed at the log site, as well as any fields accumulated on the logger. |