/** * Short description of method dolog * * @access public * @author Joel Bout, <*****@*****.**> * @param Item item * @return mixed */ public function dolog(Item $item) { // section 127-0-1-1--13fe8a1d:134184f8bc0:-8000:0000000000001852 begin if (is_null($this->filehandle)) { $this->initFile(); } if ($this->filehandle !== false) { $map = array('%d' => date('Y-m-d H:i:s', $item->getDateTime()), '%m' => $item->getDescription(), '%s' => $item->getSeverityDescriptionString(), '%t' => $item->getDateTime(), '%r' => $item->getRequest(), '%f' => $item->getCallerFile(), '%l' => $item->getCallerLine()); if (strpos($this->format, '%b')) { $map['%b'] = 'Backtrace not yet supported'; } $str = strtr($this->format, $map) . "\n"; @fwrite($this->filehandle, $str); } // section 127-0-1-1--13fe8a1d:134184f8bc0:-8000:0000000000001852 end }