MCPcopy
hub / github.com/uber-go/zap / Panicf

Method Panicf

sugar.go:228–230  ·  view source on GitHub ↗

Panicf formats the message according to the format specifier and panics.

(template string, args ...interface{})

Source from the content-addressed store, hash-verified

226// Panicf formats the message according to the format specifier
227// and panics.
228func (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.

Callers 1

TestSugarPanicLoggingFunction · 0.80

Calls 1

logMethod · 0.95

Tested by 1

TestSugarPanicLoggingFunction · 0.64