{ if (!is_resource($this->stream)) { if (null === $this->url || '' === $this->url) { throw new \LogicException('Missing stream url, the stream can not be opened. This may be caused by a premature call to close().'); } $this->createDir(); $this->errorMessage = null; set_error_handler(array($this, 'customErrorHandler')); $this->stream = fopen($this->url, 'a'); if ($this->filePermission !== null) { @chmod($this->url, $this->filePermission); } restore_error_handler(); if (!is_resource($this->stream)) { $this->stream = null; throw new \UnexpectedValueException(sprintf('The stream or file "%s" could not be opened: '.$this->errorMessage, $this->url)); } } if ($this->useLocking) { // ignoring errors here, there's not much we can do about them flock($this->stream, LOCK_EX); } $this->streamWrite($this->stream, $record); if ($this->useLocking) { flock($this->stream, LOCK_UN); } }
No arguments.
/** * {@inheritdoc} */ protected function write(array $record) { // on the first record written, if the log is new, we should rotate (once per day) if (null === $this->mustRotate) { $this->mustRotate = !file_exists($this->url); } if ($this->nextRotation < $record['datetime']) { $this->mustRotate = true; $this->close(); } parent::write($record); } /** * Rotates the files. */ protected function rotate() { // update filename $this->url = $this->getTimedFilename(); $this->nextRotation = new \DateTime('tomorrow'); // skip GC of old logs if files are unlimited if (0 === $this->maxFiles) { return; }
#0 | array:8 [ "message" => "system constants" "context" => array:1 [ "table" => array:10 [ 0 => array:2 [ 0 => "ENVE" 1 => "devel" ] 1 => array:2 [ 0 => "ROOT_DIR" 1 => "/opt/Vicarius/production/sys/.." ] 2 => array:2 [ 0 => "APP_DIR" 1 => "/opt/Vicarius/production/sys/../Applications/" ] 3 => array:2 [ 0 => "SYS_DIR" 1 => "/opt/Vicarius/production/sys/../sys/" ] 4 => array:2 [ 0 => "ROOT_APP" 1 => "radiochisinau.md" ] 5 => array:2 [ 0 => "HTTP_HOST" 1 => "radiochisinau.md" ] 6 => array:2 [ 0 => "REQUEST_URI" 1 => "/coronavirus-malaezia-a-plasat-in-carantina-peste-10000-de-politisti-pentru-a-frana-raspandirea-pandemiei---119500.html" ] 7 => array:2 [ 0 => "FORCE_APP" 1 => "radiochisinau.md" ] 8 => array:2 [ 0 => "CONFIG_APP" 1 => "radiochisinau.md" ] 9 => array:2 [ 0 => "APP" 1 => "radiochisinau.md" ] ] ] "level" => 200 "level_name" => "INFO" "channel" => "radiochisinau.md" "datetime" => DateTime @1738633339 { : 2025-02-04 03:42:19.331644 Europe/Chisinau (+02:00) } "extra" => [] "formatted" => "[2025-02-04 03:42:19] radiochisinau.md.INFO: system constants {"table":[["ENVE","devel"],["ROOT_DIR","/opt/Vicarius/production/sys/.."],["APP_DIR","/opt/Vicarius/production/sys/../Applications/"],["SYS_DIR","/opt/Vicarius/production/sys/../sys/"],["ROOT_APP","radiochisinau.md"],["HTTP_HOST","radiochisinau.md"],["REQUEST_URI","/coronavirus-malaezia-a-plasat-in-carantina-peste-10000-de-politisti-pentru-a-frana-raspandirea-pandemiei---119500.html"],["FORCE_APP","radiochisinau.md"],["CONFIG_APP","radiochisinau.md"],["APP","radiochisinau.md"]]} []\n" ] |
abstract class AbstractProcessingHandler extends AbstractHandler { /** * {@inheritdoc} */ public function handle(array $record) { if (!$this->isHandling($record)) { return false; } $record = $this->processRecord($record); $record['formatted'] = $this->getFormatter()->format($record); $this->write($record); return false === $this->bubble; } /** * Writes the record down to the log of the implementing handler * * @param array $record * @return void */ abstract protected function write(array $record); /** * Processes a record. *
#0 | array:8 [ "message" => "system constants" "context" => array:1 [ "table" => array:10 [ 0 => array:2 [ 0 => "ENVE" 1 => "devel" ] 1 => array:2 [ 0 => "ROOT_DIR" 1 => "/opt/Vicarius/production/sys/.." ] 2 => array:2 [ 0 => "APP_DIR" 1 => "/opt/Vicarius/production/sys/../Applications/" ] 3 => array:2 [ 0 => "SYS_DIR" 1 => "/opt/Vicarius/production/sys/../sys/" ] 4 => array:2 [ 0 => "ROOT_APP" 1 => "radiochisinau.md" ] 5 => array:2 [ 0 => "HTTP_HOST" 1 => "radiochisinau.md" ] 6 => array:2 [ 0 => "REQUEST_URI" 1 => "/coronavirus-malaezia-a-plasat-in-carantina-peste-10000-de-politisti-pentru-a-frana-raspandirea-pandemiei---119500.html" ] 7 => array:2 [ 0 => "FORCE_APP" 1 => "radiochisinau.md" ] 8 => array:2 [ 0 => "CONFIG_APP" 1 => "radiochisinau.md" ] 9 => array:2 [ 0 => "APP" 1 => "radiochisinau.md" ] ] ] "level" => 200 "level_name" => "INFO" "channel" => "radiochisinau.md" "datetime" => DateTime @1738633339 { : 2025-02-04 03:42:19.331644 Europe/Chisinau (+02:00) } "extra" => [] "formatted" => "[2025-02-04 03:42:19] radiochisinau.md.INFO: system constants {"table":[["ENVE","devel"],["ROOT_DIR","/opt/Vicarius/production/sys/.."],["APP_DIR","/opt/Vicarius/production/sys/../Applications/"],["SYS_DIR","/opt/Vicarius/production/sys/../sys/"],["ROOT_APP","radiochisinau.md"],["HTTP_HOST","radiochisinau.md"],["REQUEST_URI","/coronavirus-malaezia-a-plasat-in-carantina-peste-10000-de-politisti-pentru-a-frana-raspandirea-pandemiei---119500.html"],["FORCE_APP","radiochisinau.md"],["CONFIG_APP","radiochisinau.md"],["APP","radiochisinau.md"]]} []\n" ] |
'message' => (string) $message, 'context' => $context, 'level' => $level, 'level_name' => $levelName, 'channel' => $this->name, 'datetime' => $ts, 'extra' => array(), ); try { foreach ($this->processors as $processor) { $record = call_user_func($processor, $record); } while ($handler = current($this->handlers)) { if (true === $handler->handle($record)) { break; } next($this->handlers); } } catch (Exception $e) { $this->handleException($e, $record); } return true; } /** * Ends a log cycle and frees all resources used by handlers. *
#0 | array:8 [ "message" => "system constants" "context" => array:1 [ "table" => array:10 [ 0 => array:2 [ 0 => "ENVE" 1 => "devel" ] 1 => array:2 [ 0 => "ROOT_DIR" 1 => "/opt/Vicarius/production/sys/.." ] 2 => array:2 [ 0 => "APP_DIR" 1 => "/opt/Vicarius/production/sys/../Applications/" ] 3 => array:2 [ 0 => "SYS_DIR" 1 => "/opt/Vicarius/production/sys/../sys/" ] 4 => array:2 [ 0 => "ROOT_APP" 1 => "radiochisinau.md" ] 5 => array:2 [ 0 => "HTTP_HOST" 1 => "radiochisinau.md" ] 6 => array:2 [ 0 => "REQUEST_URI" 1 => "/coronavirus-malaezia-a-plasat-in-carantina-peste-10000-de-politisti-pentru-a-frana-raspandirea-pandemiei---119500.html" ] 7 => array:2 [ 0 => "FORCE_APP" 1 => "radiochisinau.md" ] 8 => array:2 [ 0 => "CONFIG_APP" 1 => "radiochisinau.md" ] 9 => array:2 [ 0 => "APP" 1 => "radiochisinau.md" ] ] ] "level" => 200 "level_name" => "INFO" "channel" => "radiochisinau.md" "datetime" => DateTime @1738633339 { : 2025-02-04 03:42:19.331644 Europe/Chisinau (+02:00) } "extra" => [] "formatted" => "[2025-02-04 03:42:19] radiochisinau.md.INFO: system constants {"table":[["ENVE","devel"],["ROOT_DIR","/opt/Vicarius/production/sys/.."],["APP_DIR","/opt/Vicarius/production/sys/../Applications/"],["SYS_DIR","/opt/Vicarius/production/sys/../sys/"],["ROOT_APP","radiochisinau.md"],["HTTP_HOST","radiochisinau.md"],["REQUEST_URI","/coronavirus-malaezia-a-plasat-in-carantina-peste-10000-de-politisti-pentru-a-frana-raspandirea-pandemiei---119500.html"],["FORCE_APP","radiochisinau.md"],["CONFIG_APP","radiochisinau.md"],["APP","radiochisinau.md"]]} []\n" ] |
*/ public function addDebug($message, array $context = array()) { return $this->addRecord(static::DEBUG, $message, $context); } /** * Adds a log record at the INFO level. * * @param string $message The log message * @param array $context The log context * @return bool Whether the record has been processed */ public function addInfo($message, array $context = array()) { return $this->addRecord(static::INFO, $message, $context); } /** * Adds a log record at the NOTICE level. * * @param string $message The log message * @param array $context The log context * @return bool Whether the record has been processed */ public function addNotice($message, array $context = array()) { return $this->addRecord(static::NOTICE, $message, $context); } /**
#0 | 200
|
#1 | "system constants"
|
#2 | array:1 [ "table" => array:10 [ 0 => array:2 [ 0 => "ENVE" 1 => "devel" ] 1 => array:2 [ 0 => "ROOT_DIR" 1 => "/opt/Vicarius/production/sys/.." ] 2 => array:2 [ 0 => "APP_DIR" 1 => "/opt/Vicarius/production/sys/../Applications/" ] 3 => array:2 [ 0 => "SYS_DIR" 1 => "/opt/Vicarius/production/sys/../sys/" ] 4 => array:2 [ 0 => "ROOT_APP" 1 => "radiochisinau.md" ] 5 => array:2 [ 0 => "HTTP_HOST" 1 => "radiochisinau.md" ] 6 => array:2 [ 0 => "REQUEST_URI" 1 => "/coronavirus-malaezia-a-plasat-in-carantina-peste-10000-de-politisti-pentru-a-frana-raspandirea-pandemiei---119500.html" ] 7 => array:2 [ 0 => "FORCE_APP" 1 => "radiochisinau.md" ] 8 => array:2 [ 0 => "CONFIG_APP" 1 => "radiochisinau.md" ] 9 => array:2 [ 0 => "APP" 1 => "radiochisinau.md" ] ] ] |
->setRows($array); $table->render(); } else { /* if($this->logLevel == LOGLEVEL_DEBUG) { $sqlPrint = []; foreach($array as $sql) { if(isset($sql[2])) $sqlPrint[]=$sql[2]; } file_put_contents(ROOT_DIR."/logs/{$this->Logprefix}sql.log",print_r($sqlPrint,true),FILE_APPEND); }*/ $this->monolog->addInfo($title,array('table' => $array)); } } return $this; } /** * @param $message * * @return $this|void * @throws \Vicarius\Error * @throws \Vicarius\Exception */ public function info($message, $LogLevel = LOGLEVEL_INFO) { if( !$this->checkFilters() )
#0 | "system constants"
|
#1 | array:1 [ "table" => array:10 [ 0 => array:2 [ 0 => "ENVE" 1 => "devel" ] 1 => array:2 [ 0 => "ROOT_DIR" 1 => "/opt/Vicarius/production/sys/.." ] 2 => array:2 [ 0 => "APP_DIR" 1 => "/opt/Vicarius/production/sys/../Applications/" ] 3 => array:2 [ 0 => "SYS_DIR" 1 => "/opt/Vicarius/production/sys/../sys/" ] 4 => array:2 [ 0 => "ROOT_APP" 1 => "radiochisinau.md" ] 5 => array:2 [ 0 => "HTTP_HOST" 1 => "radiochisinau.md" ] 6 => array:2 [ 0 => "REQUEST_URI" 1 => "/coronavirus-malaezia-a-plasat-in-carantina-peste-10000-de-politisti-pentru-a-frana-raspandirea-pandemiei---119500.html" ] 7 => array:2 [ 0 => "FORCE_APP" 1 => "radiochisinau.md" ] 8 => array:2 [ 0 => "CONFIG_APP" 1 => "radiochisinau.md" ] 9 => array:2 [ 0 => "APP" 1 => "radiochisinau.md" ] ] ] |
} public function startWeb() { $this->log->table('system constants',[ ['ENVE',APPLICATION_ENV], ['ROOT_DIR',ROOT_DIR], ['APP_DIR',APP_DIR], ['SYS_DIR',SYS_DIR], ['ROOT_APP',ROOT_APP], ['HTTP_HOST',HTTP_HOST], ['REQUEST_URI',REQUEST_URI], ['FORCE_APP',defined(FORCE_APP) ? FORCE_APP : $_SERVER['FORCE_APP'] ], ['CONFIG_APP',CONFIG_APP], ['APP',APP], ]); $this->initDB(); $this->plugin = new PluginsLoader(); $router = new \Vicarius\Router(); $match = $router->match(); $this->slashtrace->recordBreadcrumb("Router loaded"); try { if (!empty($match['name'])) {
#0 | "system constants"
|
#1 | array:10 [ 0 => array:2 [ 0 => "ENVE" 1 => "devel" ] 1 => array:2 [ 0 => "ROOT_DIR" 1 => "/opt/Vicarius/production/sys/.." ] 2 => array:2 [ 0 => "APP_DIR" 1 => "/opt/Vicarius/production/sys/../Applications/" ] 3 => array:2 [ 0 => "SYS_DIR" 1 => "/opt/Vicarius/production/sys/../sys/" ] 4 => array:2 [ 0 => "ROOT_APP" 1 => "radiochisinau.md" ] 5 => array:2 [ 0 => "HTTP_HOST" 1 => "radiochisinau.md" ] 6 => array:2 [ 0 => "REQUEST_URI" 1 => "/coronavirus-malaezia-a-plasat-in-carantina-peste-10000-de-politisti-pentru-a-frana-raspandirea-pandemiei---119500.html" ] 7 => array:2 [ 0 => "FORCE_APP" 1 => "radiochisinau.md" ] 8 => array:2 [ 0 => "CONFIG_APP" 1 => "radiochisinau.md" ] 9 => array:2 [ 0 => "APP" 1 => "radiochisinau.md" ] ] |
<?php require_once __DIR__ . '/../sys/init.php'; $system = Vicarius\System::getInstance(); $system->startWeb(); // $system->action->renderPage();
No arguments.
{ if (!is_resource($this->stream)) { if (null === $this->url || '' === $this->url) { throw new \LogicException('Missing stream url, the stream can not be opened. This may be caused by a premature call to close().'); } $this->createDir(); $this->errorMessage = null; set_error_handler(array($this, 'customErrorHandler')); $this->stream = fopen($this->url, 'a'); if ($this->filePermission !== null) { @chmod($this->url, $this->filePermission); } restore_error_handler(); if (!is_resource($this->stream)) { $this->stream = null; throw new \UnexpectedValueException(sprintf('The stream or file "%s" could not be opened: '.$this->errorMessage, $this->url)); } } if ($this->useLocking) { // ignoring errors here, there's not much we can do about them flock($this->stream, LOCK_EX); } $this->streamWrite($this->stream, $record); if ($this->useLocking) { flock($this->stream, LOCK_UN); } }
No arguments.
/** * {@inheritdoc} */ protected function write(array $record) { // on the first record written, if the log is new, we should rotate (once per day) if (null === $this->mustRotate) { $this->mustRotate = !file_exists($this->url); } if ($this->nextRotation < $record['datetime']) { $this->mustRotate = true; $this->close(); } parent::write($record); } /** * Rotates the files. */ protected function rotate() { // update filename $this->url = $this->getTimedFilename(); $this->nextRotation = new \DateTime('tomorrow'); // skip GC of old logs if files are unlimited if (0 === $this->maxFiles) { return; }
#0 | array:8 [ "message" => "system constants" "context" => array:1 [ "table" => array:10 [ 0 => array:2 [ 0 => "ENVE" 1 => "devel" ] 1 => array:2 [ 0 => "ROOT_DIR" 1 => "/opt/Vicarius/production/sys/.." ] 2 => array:2 [ 0 => "APP_DIR" 1 => "/opt/Vicarius/production/sys/../Applications/" ] 3 => array:2 [ 0 => "SYS_DIR" 1 => "/opt/Vicarius/production/sys/../sys/" ] 4 => array:2 [ 0 => "ROOT_APP" 1 => "radiochisinau.md" ] 5 => array:2 [ 0 => "HTTP_HOST" 1 => "radiochisinau.md" ] 6 => array:2 [ 0 => "REQUEST_URI" 1 => "/coronavirus-malaezia-a-plasat-in-carantina-peste-10000-de-politisti-pentru-a-frana-raspandirea-pandemiei---119500.html" ] 7 => array:2 [ 0 => "FORCE_APP" 1 => "radiochisinau.md" ] 8 => array:2 [ 0 => "CONFIG_APP" 1 => "radiochisinau.md" ] 9 => array:2 [ 0 => "APP" 1 => "radiochisinau.md" ] ] ] "level" => 200 "level_name" => "INFO" "channel" => "radiochisinau.md" "datetime" => DateTime @1738633339 { : 2025-02-04 03:42:19.331644 Europe/Chisinau (+02:00) } "extra" => [] "formatted" => "[2025-02-04 03:42:19] radiochisinau.md.INFO: system constants {"table":[["ENVE","devel"],["ROOT_DIR","/opt/Vicarius/production/sys/.."],["APP_DIR","/opt/Vicarius/production/sys/../Applications/"],["SYS_DIR","/opt/Vicarius/production/sys/../sys/"],["ROOT_APP","radiochisinau.md"],["HTTP_HOST","radiochisinau.md"],["REQUEST_URI","/coronavirus-malaezia-a-plasat-in-carantina-peste-10000-de-politisti-pentru-a-frana-raspandirea-pandemiei---119500.html"],["FORCE_APP","radiochisinau.md"],["CONFIG_APP","radiochisinau.md"],["APP","radiochisinau.md"]]} []\n" ] |
abstract class AbstractProcessingHandler extends AbstractHandler { /** * {@inheritdoc} */ public function handle(array $record) { if (!$this->isHandling($record)) { return false; } $record = $this->processRecord($record); $record['formatted'] = $this->getFormatter()->format($record); $this->write($record); return false === $this->bubble; } /** * Writes the record down to the log of the implementing handler * * @param array $record * @return void */ abstract protected function write(array $record); /** * Processes a record. *
#0 | array:8 [ "message" => "system constants" "context" => array:1 [ "table" => array:10 [ 0 => array:2 [ 0 => "ENVE" 1 => "devel" ] 1 => array:2 [ 0 => "ROOT_DIR" 1 => "/opt/Vicarius/production/sys/.." ] 2 => array:2 [ 0 => "APP_DIR" 1 => "/opt/Vicarius/production/sys/../Applications/" ] 3 => array:2 [ 0 => "SYS_DIR" 1 => "/opt/Vicarius/production/sys/../sys/" ] 4 => array:2 [ 0 => "ROOT_APP" 1 => "radiochisinau.md" ] 5 => array:2 [ 0 => "HTTP_HOST" 1 => "radiochisinau.md" ] 6 => array:2 [ 0 => "REQUEST_URI" 1 => "/coronavirus-malaezia-a-plasat-in-carantina-peste-10000-de-politisti-pentru-a-frana-raspandirea-pandemiei---119500.html" ] 7 => array:2 [ 0 => "FORCE_APP" 1 => "radiochisinau.md" ] 8 => array:2 [ 0 => "CONFIG_APP" 1 => "radiochisinau.md" ] 9 => array:2 [ 0 => "APP" 1 => "radiochisinau.md" ] ] ] "level" => 200 "level_name" => "INFO" "channel" => "radiochisinau.md" "datetime" => DateTime @1738633339 { : 2025-02-04 03:42:19.331644 Europe/Chisinau (+02:00) } "extra" => [] "formatted" => "[2025-02-04 03:42:19] radiochisinau.md.INFO: system constants {"table":[["ENVE","devel"],["ROOT_DIR","/opt/Vicarius/production/sys/.."],["APP_DIR","/opt/Vicarius/production/sys/../Applications/"],["SYS_DIR","/opt/Vicarius/production/sys/../sys/"],["ROOT_APP","radiochisinau.md"],["HTTP_HOST","radiochisinau.md"],["REQUEST_URI","/coronavirus-malaezia-a-plasat-in-carantina-peste-10000-de-politisti-pentru-a-frana-raspandirea-pandemiei---119500.html"],["FORCE_APP","radiochisinau.md"],["CONFIG_APP","radiochisinau.md"],["APP","radiochisinau.md"]]} []\n" ] |
'message' => (string) $message, 'context' => $context, 'level' => $level, 'level_name' => $levelName, 'channel' => $this->name, 'datetime' => $ts, 'extra' => array(), ); try { foreach ($this->processors as $processor) { $record = call_user_func($processor, $record); } while ($handler = current($this->handlers)) { if (true === $handler->handle($record)) { break; } next($this->handlers); } } catch (Exception $e) { $this->handleException($e, $record); } return true; } /** * Ends a log cycle and frees all resources used by handlers. *
#0 | array:8 [ "message" => "system constants" "context" => array:1 [ "table" => array:10 [ 0 => array:2 [ 0 => "ENVE" 1 => "devel" ] 1 => array:2 [ 0 => "ROOT_DIR" 1 => "/opt/Vicarius/production/sys/.." ] 2 => array:2 [ 0 => "APP_DIR" 1 => "/opt/Vicarius/production/sys/../Applications/" ] 3 => array:2 [ 0 => "SYS_DIR" 1 => "/opt/Vicarius/production/sys/../sys/" ] 4 => array:2 [ 0 => "ROOT_APP" 1 => "radiochisinau.md" ] 5 => array:2 [ 0 => "HTTP_HOST" 1 => "radiochisinau.md" ] 6 => array:2 [ 0 => "REQUEST_URI" 1 => "/coronavirus-malaezia-a-plasat-in-carantina-peste-10000-de-politisti-pentru-a-frana-raspandirea-pandemiei---119500.html" ] 7 => array:2 [ 0 => "FORCE_APP" 1 => "radiochisinau.md" ] 8 => array:2 [ 0 => "CONFIG_APP" 1 => "radiochisinau.md" ] 9 => array:2 [ 0 => "APP" 1 => "radiochisinau.md" ] ] ] "level" => 200 "level_name" => "INFO" "channel" => "radiochisinau.md" "datetime" => DateTime @1738633339 { : 2025-02-04 03:42:19.331644 Europe/Chisinau (+02:00) } "extra" => [] "formatted" => "[2025-02-04 03:42:19] radiochisinau.md.INFO: system constants {"table":[["ENVE","devel"],["ROOT_DIR","/opt/Vicarius/production/sys/.."],["APP_DIR","/opt/Vicarius/production/sys/../Applications/"],["SYS_DIR","/opt/Vicarius/production/sys/../sys/"],["ROOT_APP","radiochisinau.md"],["HTTP_HOST","radiochisinau.md"],["REQUEST_URI","/coronavirus-malaezia-a-plasat-in-carantina-peste-10000-de-politisti-pentru-a-frana-raspandirea-pandemiei---119500.html"],["FORCE_APP","radiochisinau.md"],["CONFIG_APP","radiochisinau.md"],["APP","radiochisinau.md"]]} []\n" ] |
*/ public function addDebug($message, array $context = array()) { return $this->addRecord(static::DEBUG, $message, $context); } /** * Adds a log record at the INFO level. * * @param string $message The log message * @param array $context The log context * @return bool Whether the record has been processed */ public function addInfo($message, array $context = array()) { return $this->addRecord(static::INFO, $message, $context); } /** * Adds a log record at the NOTICE level. * * @param string $message The log message * @param array $context The log context * @return bool Whether the record has been processed */ public function addNotice($message, array $context = array()) { return $this->addRecord(static::NOTICE, $message, $context); } /**
#0 | 200
|
#1 | "system constants"
|
#2 | array:1 [ "table" => array:10 [ 0 => array:2 [ 0 => "ENVE" 1 => "devel" ] 1 => array:2 [ 0 => "ROOT_DIR" 1 => "/opt/Vicarius/production/sys/.." ] 2 => array:2 [ 0 => "APP_DIR" 1 => "/opt/Vicarius/production/sys/../Applications/" ] 3 => array:2 [ 0 => "SYS_DIR" 1 => "/opt/Vicarius/production/sys/../sys/" ] 4 => array:2 [ 0 => "ROOT_APP" 1 => "radiochisinau.md" ] 5 => array:2 [ 0 => "HTTP_HOST" 1 => "radiochisinau.md" ] 6 => array:2 [ 0 => "REQUEST_URI" 1 => "/coronavirus-malaezia-a-plasat-in-carantina-peste-10000-de-politisti-pentru-a-frana-raspandirea-pandemiei---119500.html" ] 7 => array:2 [ 0 => "FORCE_APP" 1 => "radiochisinau.md" ] 8 => array:2 [ 0 => "CONFIG_APP" 1 => "radiochisinau.md" ] 9 => array:2 [ 0 => "APP" 1 => "radiochisinau.md" ] ] ] |
->setRows($array); $table->render(); } else { /* if($this->logLevel == LOGLEVEL_DEBUG) { $sqlPrint = []; foreach($array as $sql) { if(isset($sql[2])) $sqlPrint[]=$sql[2]; } file_put_contents(ROOT_DIR."/logs/{$this->Logprefix}sql.log",print_r($sqlPrint,true),FILE_APPEND); }*/ $this->monolog->addInfo($title,array('table' => $array)); } } return $this; } /** * @param $message * * @return $this|void * @throws \Vicarius\Error * @throws \Vicarius\Exception */ public function info($message, $LogLevel = LOGLEVEL_INFO) { if( !$this->checkFilters() )
#0 | "system constants"
|
#1 | array:1 [ "table" => array:10 [ 0 => array:2 [ 0 => "ENVE" 1 => "devel" ] 1 => array:2 [ 0 => "ROOT_DIR" 1 => "/opt/Vicarius/production/sys/.." ] 2 => array:2 [ 0 => "APP_DIR" 1 => "/opt/Vicarius/production/sys/../Applications/" ] 3 => array:2 [ 0 => "SYS_DIR" 1 => "/opt/Vicarius/production/sys/../sys/" ] 4 => array:2 [ 0 => "ROOT_APP" 1 => "radiochisinau.md" ] 5 => array:2 [ 0 => "HTTP_HOST" 1 => "radiochisinau.md" ] 6 => array:2 [ 0 => "REQUEST_URI" 1 => "/coronavirus-malaezia-a-plasat-in-carantina-peste-10000-de-politisti-pentru-a-frana-raspandirea-pandemiei---119500.html" ] 7 => array:2 [ 0 => "FORCE_APP" 1 => "radiochisinau.md" ] 8 => array:2 [ 0 => "CONFIG_APP" 1 => "radiochisinau.md" ] 9 => array:2 [ 0 => "APP" 1 => "radiochisinau.md" ] ] ] |
} public function startWeb() { $this->log->table('system constants',[ ['ENVE',APPLICATION_ENV], ['ROOT_DIR',ROOT_DIR], ['APP_DIR',APP_DIR], ['SYS_DIR',SYS_DIR], ['ROOT_APP',ROOT_APP], ['HTTP_HOST',HTTP_HOST], ['REQUEST_URI',REQUEST_URI], ['FORCE_APP',defined(FORCE_APP) ? FORCE_APP : $_SERVER['FORCE_APP'] ], ['CONFIG_APP',CONFIG_APP], ['APP',APP], ]); $this->initDB(); $this->plugin = new PluginsLoader(); $router = new \Vicarius\Router(); $match = $router->match(); $this->slashtrace->recordBreadcrumb("Router loaded"); try { if (!empty($match['name'])) {
#0 | "system constants"
|
#1 | array:10 [ 0 => array:2 [ 0 => "ENVE" 1 => "devel" ] 1 => array:2 [ 0 => "ROOT_DIR" 1 => "/opt/Vicarius/production/sys/.." ] 2 => array:2 [ 0 => "APP_DIR" 1 => "/opt/Vicarius/production/sys/../Applications/" ] 3 => array:2 [ 0 => "SYS_DIR" 1 => "/opt/Vicarius/production/sys/../sys/" ] 4 => array:2 [ 0 => "ROOT_APP" 1 => "radiochisinau.md" ] 5 => array:2 [ 0 => "HTTP_HOST" 1 => "radiochisinau.md" ] 6 => array:2 [ 0 => "REQUEST_URI" 1 => "/coronavirus-malaezia-a-plasat-in-carantina-peste-10000-de-politisti-pentru-a-frana-raspandirea-pandemiei---119500.html" ] 7 => array:2 [ 0 => "FORCE_APP" 1 => "radiochisinau.md" ] 8 => array:2 [ 0 => "CONFIG_APP" 1 => "radiochisinau.md" ] 9 => array:2 [ 0 => "APP" 1 => "radiochisinau.md" ] ] |
<?php require_once __DIR__ . '/../sys/init.php'; $system = Vicarius\System::getInstance(); $system->startWeb(); // $system->action->renderPage();
No arguments.
No data
No data
No data
Cf-Visitor | {"scheme":"https"} |
User-Agent | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected]) |
Cdn-Loop | cloudflare; loops=1 |
X-Forwarded-Proto | https |
Cf-Ipcountry | US |
Accept-Encoding | gzip, br |
Accept | */* |
Cf-Connecting-Ip | 18.216.141.244 |
X-Forwarded-For | 18.216.141.244 |
Cf-Ray | 90c6f6a078436173-ORD |
Host | radiochisinau.md |
Content-Length | |
Content-Type |
USER | nginx |
HOME | /var/lib/nginx |
HTTP_CF_VISITOR | {"scheme":"https"} |
HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected]) |
HTTP_CDN_LOOP | cloudflare; loops=1 |
HTTP_X_FORWARDED_PROTO | https |
HTTP_CF_IPCOUNTRY | US |
HTTP_ACCEPT_ENCODING | gzip, br |
HTTP_ACCEPT | */* |
HTTP_CF_CONNECTING_IP | 18.216.141.244 |
HTTP_X_FORWARDED_FOR | 18.216.141.244 |
HTTP_CF_RAY | 90c6f6a078436173-ORD |
HTTP_HOST | radiochisinau.md |
PATH_INFO | /coronavirus-malaezia-a-plasat-in-carantina-peste-10000-de-politisti-pentru-a-frana-raspandirea-pandemiei---119500.html |
REDIRECT_STATUS | 200 |
SERVER_PORT | 443 |
SERVER_ADDR | 192.168.10.4 |
REMOTE_PORT | 26898 |
SERVER_SOFTWARE | nginx/1.16.1 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/2.0 |
DOCUMENT_ROOT | /opt/Vicarius/production/public |
DOCUMENT_URI | /coronavirus-malaezia-a-plasat-in-carantina-peste-10000-de-politisti-pentru-a-frana-raspandirea-pandemiei---119500.html |
REQUEST_URI | /coronavirus-malaezia-a-plasat-in-carantina-peste-10000-de-politisti-pentru-a-frana-raspandirea-pandemiei---119500.html |
SCRIPT_NAME | /coronavirus-malaezia-a-plasat-in-carantina-peste-10000-de-politisti-pentru-a-frana-raspandirea-pandemiei---119500.html |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | |
APPLICATION_ENV | production |
ROOT_APP | radiochisinau.md |
FORCE_APP | radiochisinau.md |
SERVER_NAME | radiochisinau.md |
SCRIPT_FILENAME | /opt/Vicarius/production/public/index.php |
REMOTE_ADDR | 172.69.7.60 |
FCGI_ROLE | RESPONDER |
PHP_SELF | /coronavirus-malaezia-a-plasat-in-carantina-peste-10000-de-politisti-pentru-a-frana-raspandirea-pandemiei---119500.html/coronavirus-malaezia-a-plasat-in-carantina-peste-10000-de-politisti-pentru-a-frana-raspandirea-pandemiei---119500.html |
REQUEST_TIME_FLOAT | 1738633339,3003 |
REQUEST_TIME | 1738633339 |