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

Method DPanic

sugar.go:173–175  ·  view source on GitHub ↗

DPanic logs the provided arguments at [DPanicLevel]. In development, the logger then panics. (See [DPanicLevel] for details.) Spaces are added between arguments when neither is a string.

(args ...interface{})

Source from the content-addressed store, hash-verified

171// In development, the logger then panics. (See [DPanicLevel] for details.)
172// Spaces are added between arguments when neither is a string.
173func (s *SugaredLogger) DPanic(args ...interface{}) {
174 s.log(DPanicLevel, "", args, nil)
175}
176
177// Panic constructs a message with the provided arguments and panics.
178// Spaces are added between arguments when neither is a string.

Callers

nothing calls this directly

Calls 1

logMethod · 0.95

Tested by

no test coverage detected