/ Published in: PHP
I use this as a parent for all classes to add logger methods and some other functions as needed.
Expand |
Embed | Plain Text
class BaseObject{ public $debug = false; /* Put call to logging here. Write to regular log. */ } public function debug($msg){ if ( ! $this->debug ) return; /* Put call to logging here. Write to debug log. */ } }
You need to login to post a comment.
