If I call Log() and then throw an exception or crash, a log does not get generated.

Especially in Live Mode.

what's the preferred method for guaranteeing a log gets generated, especially when a crash such as a divide by zero is imminent.

Normally I would call exit(0), exit(1), or abort() for a posix process.

Author