MCPcopy
hub / github.com/sirupsen/logrus / FatalFn

Method FatalFn

logger.go:286–289  ·  view source on GitHub ↗
(fn LogFunction)

Source from the content-addressed store, hash-verified

284}
285
286func (logger *Logger) FatalFn(fn LogFunction) {
287 logger.LogFn(FatalLevel, fn)
288 logger.Exit(1)
289}
290
291func (logger *Logger) PanicFn(fn LogFunction) {
292 logger.LogFn(PanicLevel, fn)

Callers 1

FatalFnFunction · 0.80

Calls 2

LogFnMethod · 0.95
ExitMethod · 0.95

Tested by

no test coverage detected