DPanicf formats the message according to the format specifier and logs it at [DPanicLevel]. In development, the logger then panics. (See [DPanicLevel] for details.)
(template string, args ...interface{})
| 220 | // and logs it at [DPanicLevel]. |
| 221 | // In development, the logger then panics. (See [DPanicLevel] for details.) |
| 222 | func (s *SugaredLogger) DPanicf(template string, args ...interface{}) { |
| 223 | s.log(DPanicLevel, template, args, nil) |
| 224 | } |
| 225 | |
| 226 | // Panicf formats the message according to the format specifier |
| 227 | // and panics. |