Esempio n. 1
0
 /**
  * Get the script where the exeption occurred
  *
  * @retun string the script name
  */
 public function getZmaxFile()
 {
     if ($this->zmax_error) {
         return $this->script;
     } else {
         return parent::getFile();
     }
 }
Esempio n. 2
0
 /**
  * 
  * Maps the provided information to the corresponding fields
  * @param string|Zend_Exception $input
  * @return array @extraFields
  */
 protected function getExtraFieldsArray($input = null)
 {
     if ($input instanceof Zend_Exception) {
         $extraFields = array('logType' => 'exception', 'projectName' => $this->projectName, 'environment' => $this->environment, 'errorNumber' => $input->getCode(), 'file' => $input->getFile(), 'line' => $input->getLine(), 'stacktrace' => json_encode($input->getTrace()));
     } else {
         $extraFields = array('logType' => $this->logType, 'projectName' => $this->projectName, 'environment' => $this->environment);
     }
     return $extraFields;
 }