Logging: objectStatus 1.0 Alexander Serbe (contact me)
objectStatus is a PHP class for observing and logging objects. It collects messages and can print them to the screen, write into a log file, or send them via email to any number of recipients. It can be used for development purposes or for monitoring running applications.
Please have a look at the xMySQL class (also in this repository) to see how it can be implemented.