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

Method DPanicw

sugar.go:275–277  ·  view source on GitHub ↗

DPanicw logs a message with some additional context. In development, the logger then panics. (See DPanicLevel for details.) The variadic key-value pairs are treated as they are in With.

(msg string, keysAndValues ...interface{})

Source from the content-addressed store, hash-verified

273// logger then panics. (See DPanicLevel for details.) The variadic key-value
274// pairs are treated as they are in With.
275func (s *SugaredLogger) DPanicw(msg string, keysAndValues ...interface{}) {
276 s.log(DPanicLevel, msg, nil, keysAndValues)
277}
278
279// Panicw logs a message with some additional context, then panics. The
280// variadic key-value pairs are treated as they are in With.

Callers 1

Calls 1

logMethod · 0.95

Tested by 1