diff -r 5b37998e522e -r 162c1de6545a web/lib/Zend/Log/Formatter/Simple.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/lib/Zend/Log/Formatter/Simple.php Fri Mar 11 15:05:35 2011 +0100 @@ -0,0 +1,85 @@ +_format = $format; + } + + /** + * Formats data into a single line to be written by the writer. + * + * @param array $event event data + * @return string formatted line to write to the log + */ + public function format($event) + { + $output = $this->_format; + foreach ($event as $name => $value) { + + if ((is_object($value) && !method_exists($value,'__toString')) + || is_array($value)) { + + $value = gettype($value); + } + + $output = str_replace("%$name%", $value, $output); + } + return $output; + } + +}