/** * @return CL_Log */ public static function get_instance() { if (self::$instance === NULL) { self::$instance = new CL_Log(); } return self::$instance; }
function log_message($message) { $log = CL_Log::get_instance(); $log->write($message); }