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

Function Exit

alt_exit.go:49–52  ·  view source on GitHub ↗

Exit runs all the Logrus atexit handlers and then terminates the program using os.Exit(code)

(code int)

Source from the content-addressed store, hash-verified

47
48// Exit runs all the Logrus atexit handlers and then terminates the program using os.Exit(code)
49func Exit(code int) {
50 runHandlers()
51 os.Exit(code)
52}
53
54// RegisterExitHandler appends a Logrus Exit handler to the list of handlers,
55// call logrus.Exit to invoke all handlers. The handlers will also be invoked when

Callers

nothing calls this directly

Calls 2

runHandlersFunction · 0.85
ExitMethod · 0.80

Tested by

no test coverage detected