public function render(OuzoExceptionData $exceptionData, $viewName) { /** @noinspection PhpUnusedLocalVariableInspection */ $errorMessage = $exceptionData->getMessage(); $errorTrace = $exceptionData->getStackTrace(); Logger::getLogger(__CLASS__)->error($exceptionData->getOriginalMessage()); Logger::getLogger(__CLASS__)->error(Objects::toString($errorTrace)); $this->clearOutputBuffers(); header($exceptionData->getHeader()); $responseType = ResponseTypeResolve::resolve(); header('Content-type: ' . $responseType); $additionalHeaders = $exceptionData->getAdditionalHeaders(); array_walk($additionalHeaders, function ($header) { header($header); }); /** @noinspection PhpIncludeInspection */ require ViewPathResolver::resolveViewPath($viewName, $responseType); }
public function closeCursor() { Logger::getLogger(__CLASS__)->info("Closing cursor"); $this->statement->closeCursor(); }
public function _createPdoStatement() { $sqlString = $this->_humanizedSql . ' with params: ' . Objects::toString($this->_boundValues); Logger::getLogger(__CLASS__)->info("Query: %s", array($sqlString)); return $this->_pdoExecutor->createPDOStatement($this->_dbHandle, $this->_sql, $this->_boundValues, $sqlString); }
private function _logRequest() { Logger::getLogger(__CLASS__)->info('[Request:/%s/%s]', array($this->currentController, $this->currentAction)); }