Panicf formats the message according to the format specifier and panics.
(template string, args ...interface{})
| 226 | // Panicf formats the message according to the format specifier |
| 227 | // and panics. |
| 228 | func (s *SugaredLogger) Panicf(template string, args ...interface{}) { |
| 229 | s.log(PanicLevel, template, args, nil) |
| 230 | } |
| 231 | |
| 232 | // Fatalf formats the message according to the format specifier |
| 233 | // and calls os.Exit. |