getLogger(); $content = sprintf('%s(%d): %s', $e->getFile(), $e->getLine(), $e->getMessage()); $logger->error($content); echo $content . PHP_EOL; } /** * @return PhConfig */ protected function getConfig() { return $this->getDI()->getShared('config'); } /** * @return PhLogger */ protected function getLogger() { $logger = new AppLogger(); return $logger->getInstance('console'); } }