Added a global logging function.  See application/module.php for example