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

Method Fatal

sugar.go:185–187  ·  view source on GitHub ↗

Fatal constructs a message with the provided arguments and calls os.Exit. Spaces are added between arguments when neither is a string.

(args ...interface{})

Source from the content-addressed store, hash-verified

183// Fatal constructs a message with the provided arguments and calls os.Exit.
184// Spaces are added between arguments when neither is a string.
185func (s *SugaredLogger) Fatal(args ...interface{}) {
186 s.log(FatalLevel, "", args, nil)
187}
188
189// Logf formats the message according to the format specifier
190// and logs it at provided level.

Callers

nothing calls this directly

Calls 1

logMethod · 0.95

Tested by

no test coverage detected