amcgowanca/PHP-Sandbox — pull request #1 by jeremymills (2013-03-14 00:44:12+00:00)
Title: Changes to the exception class

I believe this is the basic functionality you are looking for... pretty much just creating a log function todo later, calling it to add information to a log file. And then passing the information up the chain to the actual Exception class for it to create the instance of the exception there...

..Let me know ;)