Exemplo n.º 1
0
 protected function log($writeToLogFunction, $level, $levelName, $message, $params)
 {
     $minimalLevel = $this->_minimalLevels ? Arrays::getValue($this->_minimalLevels, $this->_name, LOG_DEBUG) : LOG_DEBUG;
     if ($level <= $minimalLevel) {
         $message = $this->_messageFormatter->format($this->_name, $levelName, $message);
         if (!empty($params)) {
             $message = call_user_func_array('sprintf', array_merge(array($message), $params));
         }
         $writeToLogFunction($message);
     }
 }