* Log levels according to syslog priority
private $timestamp = null;
private $shortMessage = null;
private $fullMessage = null;
private $facility = null;
public function setVersion($version)
$this->version = $version;
public function getVersion()
* @param integer $timestamp
public function setTimestamp($timestamp)
$this->timestamp = $timestamp;
public function getTimestamp()
* @param string $shortMessage
public function setShortMessage($shortMessage)
$this->shortMessage = $shortMessage;
public function getShortMessage()
return $this->shortMessage;
* @param string $fullMessage
public function setFullMessage($fullMessage)
$this->fullMessage = $fullMessage;
public function getFullMessage()
return $this->fullMessage;
* @param string $facility
public function setFacility($facility)
$this->facility = $facility;
public function getFacility()
public function setHost($host)
public function getHost()
public function setLevel($level)
public function getLevel()
public function setFile($file)
public function getFile()
public function setLine($line)
public function getLine()
public function setAdditional($key, $value)
$this->data["_".trim($key)] = $value;
public function getAdditional($key)
$additional_key = "_".trim($key);
return isset($this->data[$additional_key]) ? $this->data[$additional_key] : null;
public function toArray()
'version' => $this->getVersion(),
'timestamp' => $this->getTimestamp(),
'short_message' => $this->getShortMessage(),
'full_message' => $this->getFullMessage(),
'facility' => $this->getFacility(),
'host' => $this->getHost(),
'level' => $this->getLevel(),
'file' => $this->getFile(),
'line' => $this->getLine(),
foreach ($this->data as $key => $value) {
$messageAsArray[$key] = $value;