latest logging changes.. with this commit it's actually "working", though I still have much work before it's "done" - mainly a big code review and updating of all the phpdoc blocks.