protected function log($format, $args = null, $_ = null) { if (!empty($this->config->debug)) { $string = call_user_func_array('sprintf', func_get_args()); $this->aLog[] = sprintf("%s - %s\n", date('i:s'), $string); } }