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

Method Panicw

sugar.go:281–283  ·  view source on GitHub ↗

Panicw logs a message with some additional context, then panics. The variadic key-value pairs are treated as they are in With.

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

Source from the content-addressed store, hash-verified

279// Panicw logs a message with some additional context, then panics. The
280// variadic key-value pairs are treated as they are in With.
281func (s *SugaredLogger) Panicw(msg string, keysAndValues ...interface{}) {
282 s.log(PanicLevel, msg, nil, keysAndValues)
283}
284
285// Fatalw logs a message with some additional context, then calls os.Exit. The
286// variadic key-value pairs are treated as they are in With.

Callers 1

TestSugarPanicLoggingFunction · 0.80

Calls 1

logMethod · 0.95

Tested by 1

TestSugarPanicLoggingFunction · 0.64