A ton of work completed.
Basic logging structure is now working.
Still need to figure out how to automatically flush on exit.