MCPcopy
hub / github.com/rs/zerolog / Fatal

Function Fatal

log/log.go:88–90  ·  view source on GitHub ↗

Fatal starts a new message with fatal level. The os.Exit(1) function is called by the Msg method. You must call Msg on the returned event in order to send the event.

()

Source from the content-addressed store, hash-verified

86//
87// You must call Msg on the returned event in order to send the event.
88func Fatal() *zerolog.Event {
89 return Logger.Fatal()
90}
91
92// Panic starts a new message with panic level. The message is also sent
93// to the panic function.

Callers 1

ExampleFatalFunction · 0.92

Calls 1

FatalMethod · 0.80

Tested by 1

ExampleFatalFunction · 0.74