Exit runs all the Logrus atexit handlers and then terminates the program using os.Exit(code)
(code int)
| 47 | |
| 48 | // Exit runs all the Logrus atexit handlers and then terminates the program using os.Exit(code) |
| 49 | func 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 |
nothing calls this directly
no test coverage detected