l := logrus.New() l.ExitFunc = func(int) { fmt.Println("exit") } l.Log(logrus.FatalLevel, "test") // The exit function was not called! l.Fatal("test") // The exit function is called! Designed so?