Compilation Options

The following constants change the behaviour of the compiled unit (hlog.cps):

QUIET (default: FALSE)
When TRUE, the MessageBox created by the unit's Error function is supressed. The logging system should still run without crashing, but it might be slow if you're running into recursion errors.

SAFE (default: TRUE)
When set to FALSE, most pointer checks are skipped. (FALSE is about 1% faster)

RECURSION_THRESHOLD (default: 32)
When this threshold is reached, it is assumed that there is an infinite loop, and the function aborted.

ENTRY_PREPEND_TIME (default: FALSE)
When set to TRUE, log entries are prefixed with a date & time string
When set to FALSE logging is about 25% faster

ENTRY_PREPEND_MILLISECS (default: TRUE)
When set to TRUE, log entries are prefixed with the time in milliseconds that has passed since the program was started.