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

Method DPanicf

sugar.go:222–224  ·  view source on GitHub ↗

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{})

Source from the content-addressed store, hash-verified

220// and logs it at [DPanicLevel].
221// In development, the logger then panics. (See [DPanicLevel] for details.)
222func (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.

Callers 1

Calls 1

logMethod · 0.95

Tested by 1