Server : Apache System : Linux pod-100823:apache2_74:v0.5.7 5.4.0-1138-gcp #147~18.04.1-Ubuntu SMP Mon Oct 7 21:46:26 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33.7 Disable Function : apache_child_terminate,apache_get_modules,apache_get_version,apache_getenv,apache_note,apache_setenv,disk_free_space,disk_total_space,diskfreespace,dl,exec,fastcgi_finish_request,link,opcache_compile_file,opcache_get_configuration,opcache_invalidate,opcache_is_script_cached,opcache_reset,passthru,pclose,pcntl_exec,popen,posix_getpid,posix_getppid,posix_getpwuid,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,realpath_cache_get,shell_exec,show_source,symlink,system Directory : /nas/content/live/attorneyexperi/wp-content/plugins/ugslot/Gelf/ |
<?php class Gelf_Message { /**#@+ * Log levels according to syslog priority */ const EMERGENCY = 0; const ALERT = 1; const CRITICAL = 2; const ERROR = 3; const WARNING = 4; const NOTICE = 5; const INFO = 6; const DEBUG = 7; /**#@-*/ /** * @var string */ private $version = null; /** * @var integer */ private $timestamp = null; /** * @var string */ private $shortMessage = null; /** * @var string */ private $fullMessage = null; /** * @var string */ private $facility = null; /** * @var string */ private $host = null; /** * @var integer */ private $level = null; /** * @var string */ private $file = null; /** * @var integer */ private $line = null; /** * @var array */ private $data = array(); /** * @param string $version * * @return Gelf_Message */ public function setVersion($version) { $this->version = $version; return $this; } /** * @return string */ public function getVersion() { return $this->version; } /** * @param integer $timestamp * * @return Gelf_Message */ public function setTimestamp($timestamp) { $this->timestamp = $timestamp; return $this; } /** * @return integer */ public function getTimestamp() { return $this->timestamp; } /** * @param string $shortMessage * * @return Gelf_Message */ public function setShortMessage($shortMessage) { $this->shortMessage = $shortMessage; return $this; } /** * @return string */ public function getShortMessage() { return $this->shortMessage; } /** * @param string $fullMessage * * @return Gelf_Message */ public function setFullMessage($fullMessage) { $this->fullMessage = $fullMessage; return $this; } /** * @return string */ public function getFullMessage() { return $this->fullMessage; } /** * @param string $facility * * @return Gelf_Message */ public function setFacility($facility) { $this->facility = $facility; return $this; } /** * @return string */ public function getFacility() { return $this->facility; } /** * @param string $host * * @return Gelf_Message */ public function setHost($host) { $this->host = $host; return $this; } /** * @return string */ public function getHost() { return $this->host; } /** * @param integer $level * * @return Gelf_Message */ public function setLevel($level) { $this->level = $level; return $this; } /** * @return integer */ public function getLevel() { return $this->level; } /** * @param string $file * * @return Gelf_Message */ public function setFile($file) { $this->file = $file; return $this; } /** * @return string */ public function getFile() { return $this->file; } /** * @param integer $line * * @return Gelf_Message */ public function setLine($line) { $this->line = $line; return $this; } /** * @return integer */ public function getLine() { return $this->line; } /** * @param string $key * @param mixed $value * * @return Gelf_Message */ public function setAdditional($key, $value) { $this->data["_".trim($key)] = $value; return $this; } /** * @return mixed */ public function getAdditional($key) { $additional_key = "_".trim($key); return isset($this->data[$additional_key]) ? $this->data[$additional_key] : null; } /** * @return array */ public function toArray() { $messageAsArray = array( '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; } return $messageAsArray; } }