芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/avenida/lib/Xmds/LogProcessor.php
log = $log; $this->uid = $uid; $this->method = $method; } /** * @param $route */ public function setRoute($route) { $this->route = $route; } /** * @param $displayId * @param bool $isAuditing */ public function setDisplay($displayId, $isAuditing) { if ($isAuditing) $this->log->setLevel(\Xibo\Service\LogService::resolveLogLevel('debug')); $this->displayId = $displayId; } /** * Get Log Level * @return int */ public function getLevel() { return $this->log->getLevel(); } /** * Get UID * @return string */ public function getUid() { return $this->uid; } /** * @param array $record * @return array */ public function __invoke(array $record) { $record['extra']['displayId'] = $this->displayId; $record['extra']['route'] = $this->route; $record['extra']['method'] = $this->method; return $record; } }