/** * Checks the priority and calls respective log is its it can be called * @param string $method * @param string $params */ public function __call($method, $params) { $priority = strtoupper($method); if (isset($this->_flippedPriorities[$priority])) { if (Tinebase_Core::isLogLevel($this->_flippedPriorities[$priority])) { parent::__call($method, $params); } } }
public function __call($method, $params) { $trace = debug_backtrace(false); $caller = $trace[2]; $place = ''; $parCaller = $trace[1]; if (array_key_exists('class', $caller)) { $place = $caller['class'] . "::" . $caller['function']; } else { $place = $caller['function']; } $place .= " (line:" . $parCaller['line'] . ") "; $params[0] = $place . $params[0]; parent::__call($method, $params); }
/** * Magic method __call implemntation proxies to Zend_Log __call method. * * @param string $method * @param array $params */ public function __call($method, $params) { self::$_logger->__call($method, $params); }