Panic logs a message at PanicLevel. The message includes any fields passed at the log site, as well as any fields accumulated on the logger. The logger then panics, even if logging at PanicLevel is disabled.
(msg string, fields ...Field)
| 281 | // |
| 282 | // The logger then panics, even if logging at PanicLevel is disabled. |
| 283 | func (log *Logger) Panic(msg string, fields ...Field) { |
| 284 | if ce := log.check(PanicLevel, msg); ce != nil { |
| 285 | ce.Write(fields...) |
| 286 | } |
| 287 | } |
| 288 | |
| 289 | // Fatal logs a message at FatalLevel. The message includes any fields passed |
| 290 | // at the log site, as well as any fields accumulated on the logger. |