Erik Enge ripped much of this code out of ODCL's log.lisp (made into
ASDF package and now only relies on UFFI, conditions and options to
openlog).
